Game apps for smartphones and tablets

Research project PHBern  
HomeStart online editorAndroid TurtlegraphicsPrintJava-Online

FourInARow - Game

Four In A Row (also Connect four) is a two-person strategy game with the aim to bring four of the own tokens in one line (horizontally, vertically or diagonally). That classic board game is played on a vertical, hollow board into which the players in turns drop their tokens. The board consists of seven columns (vertical) and six rows (horizontal). Each player has got 21 same-color tokens. When a player drops a token into a column, he occupies the lowest free space of the column. Winner of the game is the player who first succeeds to bring four of his tokens in one line. The game ends undecided if the board is complete with tokens without any player having been able to build a row with four of his tokens.

In our learning environment, you can find this game in two variations:

  • For one player playing against the computer
  • For two players playing in the internet (in the section TCP/IP - Games)

Start game (first connect to smartphone or start emulator)

Edit this example in the Online Editor

App installieren auf Smartphone oder Tablet

Download sources (


QR code for the direct download on the smartphone