The windy gridworld
The grid has 7 rows and 10 columns. Every episode starts in S, in the fourth row of the first column, and ends when the agent reaches the goal G, in the same row of the eighth column. The actions are the four moves up, down, left and right. In columns 4 to 9 a wind blows upward: after each move, the wind pushes the agent up by the strength of the column it left, 1 or 2 cells. Moves off the grid stop at the edge. Every step has reward and , so the return of an episode is minus its number of steps. Monte Carlo control is a poor fit for this task. Some policies never reach the goal, for example one that keeps walking into the top edge of the grid, and an episode under such a policy never ends, so Monte Carlo never gets a return to learn from. SARSA learns during the episode. Each step that goes nowhere lowers the value of the action that caused it, and the -greedy policy soon picks another action.Code
Code
Code
Code
References
- Sutton, R., Barto, A. (2018). Reinforcement Learning: An Introduction. Link
Found an error on this page? Report an issue.

