The aim for both players is to make a straight line of four own pieces; the line can be vertical, horizontal or diagonal.
The human player plays first followed by the AI robot which is based on an AI algorithm known as minimax.
Moves are made alternatively, one per turn. Moves involve placing new pieces on the board; pieces slide downwards from upper holes, falling down to the last row or piling up on the last piece introduced in the same column. So, in every turn the introduced piece may be placed at most on seven different squares.
The winner is the first player who gets a straight line made with four own pieces and no gaps between them. VIEW CODE