Skip to content

bgrgicak/WarGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WarGame

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/

About

Simple war game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published