Four In A Row

Four In A Row

Four in a Row is a two-player connection game in which the players take turns dropping colored chips from the top into a suspended grid. The objective of the game is to connect four of one's own chips of the same color next to each other vertically, horizontally, or diagonally before your opponent. This game is relatively simple to play and to code a bot for, so if you're not very experienced in (AI) programming, this competition is perfect for you. This competition is still in Beta, meaning that there could be bugs present. If you have any questions, suggestions or if you've found a bug, please post on the discussion page

The rules in detail

The rules for Four in a Row are simple. The field (board) has seven columns and six rows. Two players play by alternately dropping a chip down one of the columns. The chip drops to the lowest unoccupied spot in that column. The first player to get four of his own chips in a row, either vertical, horizontal, or diagonal, wins. The game ends in a draw if it fills before someone wins.

Technical details

The timeout settings are the same as for our newer competitions. You get an initial maximally filled timebank of 10 seconds and each time a move is requested 500ms will be added to your timebank. The engine will give the amount of time left in your timebank each time it asks your bot for a move. If your bot does not respond before the timeout, the engine will ask again for a move. If it doesn't respond twice, your bot will be shut down. Bots that do not output anything at all, a.k.a. fail their input test, can not be placed in the ranked matches.

When uploading your bot, you can upload a .zip , .rar or .tar.gz file. Make sure you either put the source files directly in the compressed folder, or in their respective class folders. So do not put a folder with the source files in the compressed folder, or your bot won't compile.

Game viewer hotkeys

hotkeys-headsupomaha