Monday, September 8, 2008

Lessons learned from Code Ruler

Overview

CordRuler is Java based programming game based on Eclipse IDE. CordRuler designed for competition of student programers between universities. Each participants need to implement MyRuler.java which controls all personal Knights, Peasants, and Castles that the Ruler has. Knights can kill enemy's Knight or Peasants, or take enemy's Castle. Peasants can take a land by moving to that position. Castles can produce Knights or Peasants depends on the amount of the land.

Results


VS Migrate RulerVs Gang Up RulerVS Split Up Ruler
First Try502 : 45536 : 57552 : 56
Second Try534 : 45503 : 76314 : 63
Third Try543 : 42548 : 70532 : 104

Stratege

Knights

When indivisual Knight's strength is below 30:
The Knight try to attack enemy's Peasant or Castle.

When indivisual Knight's strength is over 30;
The Knight try to attack enemy's Knight.

Peasants


Randomly move to other points.

Castles


Produce Knights when the number of Knights are insufficient.
Produce Peasants when the number of Peasants are insufficient.

My Source


Source Download

No comments: