Environment: CliffWalking-v1
CliffWalking-v1 is the canonical Gymnasium gridworld for tabular control. The agent moves on a grid: it starts at the bottom-left (state index 36) and must reach the bottom-right goal (state index 47). Every step yields reward , except stepping into any of the cells along the bottom edge between start and goal, the cliff, which yields reward and resets the agent back to the start. The action space isDiscrete(4) with the convention 0 = up, 1 = right, 2 = down, 3 = left, transitions are deterministic, and the observation is a single integer in encoding row * 12 + col. With only 48 states it is small enough to learn with a plain Q-table, while also being the textbook environment (Sutton & Barto, Example 6.6) used to contrast SARSA’s safe path along the top edge against Q-learning’s optimal-but-risky path adjacent to the cliff.



References
- Bellemare, M., Srinivasan, S., Ostrovski, G., Schaul, T., Saxton, D., et al. (2016). Unifying count-based exploration and intrinsic motivation. arXiv [cs.AI].
- Jaderberg, M., Mnih, V., Czarnecki, W., Schaul, T., Leibo, J., et al. (2016). Reinforcement Learning with Unsupervised Auxiliary Tasks. arXiv [cs.LG].
- Li, Y. (2017). Deep Reinforcement Learning: An Overview. arXiv [cs.LG].
- Lillicrap, T., Hunt, J., Pritzel, A., Heess, N., Erez, T., et al. (2015). Continuous control with deep reinforcement learning. arXiv [cs.LG].
- Ma, S., Yu, J. (2016). Transition-based versus State-based Reward Functions for MDPs with Value-at-Risk. arXiv [cs.AI].
Found an error on this page? Report an issue.

