This game is a project done as per the requirement of Artificial Intelligence course in the sixth semester of Computer Engineering. Four in a Row is a two-player game which consists of a plastic rack with six horizontal rows and seven vertical columns. Each player has a number of “checkers”-type playing pieces. The pieces for two players are in two different colors, Red and Blue. The two players take turns putting a playing piece into a vertical column of their choice. The piece falls down that column under gravity until it stops against the bottom or against another piece. In this way the columns start to fill up. The object is to be the first player to connect four of her pieces. The four pieces may be lined up horizontally, vertically, or diagonally.