Pieces
Pieces is a program to play the traditional Tangram, game of Chinese origin. It consists on constructing shapes with some polygonal pieces. Traditionally the game has seven pieces, but there are also variations with 5 to 14 pieces and others. You can play the tangram in 40 different modalities. You can create new figures and add them to the main game. To elaborate more that 31,000 shapes proposed by the program. In addition, it is possible to create competitions against your friends, and select only the shapes you want to use. And more.

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


Pieces on an eComStation machine with Open JDK


Installing Pieces
Download the zip file JPeces-4.2.1.zip. Create a folder (directory) "jpeces" or "jpieces" or something similar which fits your needs. Open the zip file, open the folder (directory) "JPeces-4.2.1" and copy everything to the new created folder (directory). Delete the file "jpeces.sh", its for an other system. That's it!

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

  • [drive: java] = drive with Java
  • [drive: jpeces] = drive with JPeces (Pieces)

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

Create a new program object. Specify the path and file name: "[drive: jpeces]\jpeces\jp.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 "Pieces". 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: jpeces]\jpeces" will ensure that Pieces will save all necessary files in own directory instead of saving them in the home directory.
  • The addition "2>jpeces-bugs.txt" ensures that errors are saved in the file "jpeces-bugs.txt". The 2 in "2>" is not a typo! The file stays not empty on my machine, has to do with help or starting the browser.

Download
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: jpeces-os2.zip.

revision May 1, 2020