Example C Application: Monopoly

The following is an example of a small application that was translated from C to Java by Jazillian. By comparing the original C code with the Java code that Jazillian generates, you should get a good feel for what Jazillian does. The application plays the board game "Monopoly". The original C code is about 2800 non-comment lines of code and the resulting Java code is about 2200 lines.

Jazillian allows clients to provide file names and variable names by mapping the old variable names to new ones. Better file names are specified by this file: files.txt. And better variable names are specified by this file: app2.txt.

For a detailed, line-by-line comparison of the changes made to a single file, see Example C Application: Code Comparison.

This example application was chosen because it was used by the Ephedra translator. To get a really good feel for the difference between the kind of code that Jazillian produces and the type of code that a more traditional translator code produces, compare the Java files below with the files that Ephedra generates. Go to The Ephedra page and click on "modified C source and generated Java source".

C FileJava File
brd.dat Combined with Monop.java
cards.c CardReader.java
cards.inp CardReader.java
deck.h (removed)
execute.c Execute.java
getinp.c GetInput.java
houses.c Houses.java
initdeck.c InitDeck.java
jail.c Jail.java
misc.c Misc.java
mon.dat Combined with Monop.java
monop.c Monop.java
monop.def Combined with Monop.java
monop.ext Combined with Monop.java
monop.h Combined with Monop.java
morg.c Mortgage.java
pathnames.h (removed)
print.c Print.java
prop.c PropertyFunctions.java
prop.dat Combined with PropertyFunctions.java
rent.c Rent.java
roll.c Roll.java
spec.c SpecialMoves.java
trade.c Trade.java

Copyright 2003-2007 Jazillian, Inc. Java is a registered trademark of Sun Microsystems, Inc. in the U.S. or other countries.