JDroidLib
 
 

The source code of all apps is included in the JDroidLib distribution.


Four-in-a-Row (Connect Four), Player against Computer

is a two-player game in which the players drop their colored discs from the top into a seven-column, six-row vertically-suspended grid. The pieces fall straight down, occupying the next available space within the column. The object of the game is to connect four of one's own discs of the same color next to each other vertically, horizontally, or diagonally before one's opponent can do so.
[Ref. http://en.wikipedia.org/wiki/Four-in-a-row.]

You play against the computer. The disc is moved by a touch drag. When released the disc starts to fall.

Download Android app for installation on a smartphone or emulator.

Create QR code to download Android app to your smartphone.

Download sources (FourInARow.zip).

  a_fourinarow  


Install/Start app on a USB connected smartphone or a running emulator (MS-Windows, Linux or Mac)

(This is a WebStart signed by the University of Berne, Switzerland. It installs some helper files in <userhome>.jdroidtools.If you did not install the Android SDK, you may install a slim version of the Android-Emulator in <userhome>.jdroidemul using this link, To start the emulator, execute ExecEmul.jar found in <userhome>.jdroidemul)
Download app via Bluetooth using DroidInstall app.
(This is a WebStart signed by the University of Berne, Switzerland. It starts a Java Bluetooth client application ApkBlueInstaller that connects to a Android Bluetooth server DroidInstall that must be started on the smartphone. Click here to get the DroidInstall app.)

 


Four-in-a-Row (Connect Four), Two Players Connected Via TCP/IP

When starting, the app requests a unique name for the game room. Both players must enter the same game room to be joined together. The smartphone must be connected to the internet via WLAN or GSM/UMTS.

Download Android app for installation on a smartphone or emulator.

Create QR code to download Android app to your smartphone.

Download sources (TcpFourInARow.zip).

  a_tcpfourinarow  


Install/Start app on a USB connected smartphone or a running emulator (MS-Windows, Linux or Mac)

(This is a WebStart signed by the University of Berne, Switzerland. It installs some helper files in <userhome>.jdroidtools.If you did not install the Android SDK, you may install a slim version of the Android-Emulator in <userhome>.jdroidemul using this link, To start the emulator, execute ExecEmul.jar found in <userhome>.jdroidemul)
Download app via Bluetooth using DroidInstall app.
(This is a WebStart signed by the University of Berne, Switzerland. It starts a Java Bluetooth client application ApkBlueInstaller that connects to a Android Bluetooth server DroidInstall that must be started on the smartphone. Click here to get the DroidInstall app.)

Execute the application ported to JGameGrid locally using WebStart.