First Reach Game

  • There are two mode in this game
    • First one, human player vs computer player
    • Second one, human player vs another human player

About this game

   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

Diagram showing how to play this game

The algorithm to determine the best move each car (if you play with computer)

Using minmax algorithm, can determine the best move for each car

image

Screenshots

When playing with the computer

image

image

image

image

When playing with another human player

image

image

image

image