JTronic JTron is inspired by the classic Tron and Pac-man games. The goal in this game is to get as many points as possible within three rounds of the game. To do so, a player should try to survive as long as it can, collect coins, and try to kill its opponent, so the overall gained points of the opponent does not exceed that of the player's. System requirements
Installing JTronic Download the zip file JTronic%201.0beta1.zip. Create a folder (directory) "jtronic" or something similar which fits your needs. Open the zip file, open the folder (directory) "release" and copy everything to the new created folder (directory). Delete the files ".DS_Store", "makeJar.sh", "makeJavadoc.sh" and "run.sh". They are for other OS systems. That's it! The used jtron.cmd file JTronic works with Open JDK in OS/2-eCS. I have made a "jtron.cmd" file with the following contents; @echo off set CLASSPATH= set BEGINLIBPATH=[drive: java]\JAVA160ga5\bin set path=[drive: java]\JAVA160ga5\bin [drive: jtronic] cd [drive: jtronic]\jtronic rem java -Duser.home=[drive: jtronic]\jtronic -Xmx512m -Xms256m -classpath jtron.jar jp.ac.nii.icpc2010.Main %1 2>jtronic-bugs.txt java -Duser.home=[drive: jtronic]\jtronic -jar jtron.jar -playerClass CoinPlayer -playerClass RandomPlayer 2>jtronic-bugs.txtThe above last four lines are in two parts just for the page, it is in the file two lines, one starting with "rem" and one starting with "java". Mind the space between "jtron.jar" and "jp.ac.nii.icpc2010.Main" and between "CoinPlayer" and "-playerClass". I use 2 separate folders (directories), one for Java and one for JTronic with the files created by this program. The references used in the cmd file;
should be replaced by real drive letters. Adjust the file from the distribution below, ie. different drive and directories. As you can see one line starts with "rem" and one line is started with "-classpath", the other line with "-jar". Some options in one line are different. So there is some to read before you make up your mind with this command file. The manual is enclosed and is the file "README-ICPC.pdf". You need a pdf reader and read the file carefully. Save "jtron.cmd" and copy it to the "jtronic" folder (directory) or your choice of folder (directory). Create a new program object. Specify the path and file name: "[drive: jtronic]\jtronic\jtron.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 "JTronic". 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
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: jtronic-os2.zip. revision May 14, 2020 |