This is a randomly generated maze. An AI agent has been trained with Q-learning to solve these kinds of mazes that you can watch.
There are also alternatives to play the game with manual controls or in versus mode. Press the following keys to switch between the different game modes:
A : AI mode. Watch the pre-trained agent solve the generated mazes. (Default)
P : Manual Player mode. Press 'I' to show controls.
V : Versus mode. Play against one of the trained AI agents.
N : Start a new training session.
C : Continue the training for the current agent.
R : Restart the current level.
S : Save current agents (Q-table) as a file.
+ : Speed up training session.
- : Slow down the training session.
Use the arrow keys to move the ball and find your way out of the maze before your energy is gone.
You lose some energy for every step you take. Note that brick walls are solid but bushes are not.
However, if you go through a bush, more energy is spent.
Good luck!
Total score: XXX
Total score: XXX
Total score: XXX
This mode will automatically play a game with the best agent.
Else chose a number between [0, 0] to play another agent.
Chosen agent: 0
N : Start a new training session.
C : Continue the training for the current agent.
R : Restart the current level.
P : Switch to Manual Player mode.
V : Switch to Versus mode
S : Save current agents (Q-table) as a file.
+ : Speed up training session.
- : Slow down the training session.
In this mode the player (ball) moves from user input.
I : Show instructions.
A : Switch to AI agent mode.
V : Switch to Versus mode.
In this mode the user plays against an AI agent.
First one to the exit wins this level, the best total score after 10 levels wins the game.
Available agents: [0, 0]
Opponent: 0
I : Show instructions.
A : Switch to AI agent mode.
P : Switch to Manual Player mode.