A further extension of minimax is to games that include stochastic elements. These are modeled as additional layers of chance nodes in the search tree resulting either in expectimax (for a single-player stochastic game) or in expectiminimax (for a two-player stochastic game). Chance nodes branch over all possible stochastic outcomes, weighing their values by the respective transition probabilities.