Four In Line
Rules
This is our AI implementation of the popular game.
Two players take turns dropping red and yellow disks into a six-row, seven-column grid.
The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own disks.
The history of the game and mathematical background is described in Wikipedia.
Settings
You can choose the AI level to play against.Â
There are two options that you can configure:
Show timers - do this if you want to track how fast you can beat the AI of different levels. Turn it off to reduce the pressure.
Show AI messages - do this if you want to see AI's justification of some of its moves, like you are getting close to four disks in line and AI needs to block it or risk loosing.
The game ends when one of the players gets four of their disks in a row, or when there are no more empty spaces in the grid.