index.php runs the HTML interface
simple.php is a basic working example
/bin files are classes for the war game
- /bin/battle.php contains variables and methods to run the game. Run by creating a new instance of battle. Give parameter array(Army1 number of warriors, Army2 number of warriors) Get result from battle instance with winner method
- /bin/army.php contains variables and methods to create a army of warriors. Give parameters $warriorCount (first) number of warriors and $armyId (second) unique identificator
- /bin/warrior.php contains variables and methods to create a warrior.
/css stylesheet (not important)
Working example: http://testing.bero.info/