Get Four (also known as Connect Four, Plot Four, Find Four, Four in a Row, and Four in a Line) is a two-player game in which the players take turns in dropping alternating colored discs into a seven-column, six-row vertically-suspended grid. The object of the game is to connect four singly-colored discs in a row vertically, horizontally, or diagonally before one's opponent can do so. You can play against a computer opponent which provides three different levels of difficulty. Or you can play against another human player. The algorithm used for the artificial intelligence of the computer opponent is called Minmax algorithm.

System requirements
  • Minimum JRE version 1.6.0 Build 27 GA5 (2013-02-17)

GetFour on an eComStation machine with Open JDK

Installing GetFour
Download the zip file getfour_2.0.6.jar. Create a folder (directory) "getfour" or something similar which fits your needs. Copy the file to the new created folder (directory). That's it!

The used getfour.cmd file
GetFour works with Open JDK in OS/2-eCS. I have made a "getfour.cmd" file with the following contents;
@echo off
set BEGINLIBPATH=[drive: java]\JAVA160ga5\bin
set path=[drive: java]\JAVA160ga5\bin
[drive: getfour]
cd [drive: getfour]\getfour
java -Duser.home=[drive: getfour]\getfour -jar getfour_2.0.6.jar 2>getfour-bugs.txt
I use 2 separate folders (directories), one for Java and one for GetFour with the files created by this program. The references used in the cmd file;

  • [drive: java] = drive with Java
  • [drive: getfour] = drive with GetFour

should be replaced by real drive letters. Adjust the file from the distribution below, ie. different drive and directories. Save "getfour.cmd" and copy it to the "getfour" folder (directory) or your choice of folder (directory).

Create a new program object. Specify the path and file name: "[drive: getfour]\getfour\getfour.cmd". In the tabpage Session check the boxes "OS/2 window", "Running as an icon" and "Close Window to end program". In the tabpage General you can enter the name "GetFour". The download also has an OS/2 icon.

I want to point out that this is a way to start the program, OS/2 and its successors do have much more ways for starting a java program.

Parameters / options explained
  • The specification "-Duser.home=[drive: getfour]\getfour" will ensure that GetFour will save all necessary files in own directory instead of saving them in the home directory.
  • The addition "2>getfour-bugs.txt" ensures that errors are saved in the file "getfour-bugs.txt". The 2 in "2>" is not a typo! The file stays empty on my machine, good sign.

In the file you can find all necessary files, all drive letters in the command file are on set to C:. You can download it here:

revision May 24, 2020