- There are two mode in this game
- First one, human player vs computer player
- Second one, human player vs another human player
This game consists of an n*n grid
Each player can have (n-2) cars on the top row or on the left column
The goal of this game is to reach the other side firstly
(if your vehicle is in the top row, your goal is to make all your cars in the down row)
(if your vehicle is in the left column, your goal is to make all your cars in the right column)
His only valid move is to only one step forward
if the next cell isn't occupied, then you can move to it automatically
if the next cell is settled, you can move to the next cell if it isn't occupied automatically
if the next cell is settled and the next cell also is occupied, then you cannot move this car
Using minmax algorithm, can determine the best move for each car
When playing with the computer
When playing with another human player