| Definition | Gymnasium 2048 is an RL environment that simulates the 2048 game, enabling the training of agents through tile movement and merging mechanics. |
| No of environments | 1 |
Gymnasium 2048 is an RL environment that replicates the mechanics of the popular puzzle game 2048. Designed for training game-playing agents, it features a discrete action space that allows movement in four directions: up, right, down, and left. The observation space consists of a 3D ndarray encoding the game board’s state, represented across 16 channels, each corresponding to specific tile values. The environment is open for tweaking, enabling users to modify parameters such as the board size and maximum tile power, allowing for personalized experimentation and exploration.
In this environment, players earn rewards by merging tiles, with the reward for each merge equal to the value of the resulting tile. The game begins with two randomly generated tiles, and the episode continues until no valid moves are left, which occurs when all squares are occupied and no adjacent tiles share the same value.
| Example observations | |
| Example actions | |
| Example reward |

