PHP Classes

Simple PHP Combat System: Simulate a combat with attacker and defender army

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 61%Total: 775 This week: 1All time: 4,365 This week: 257Up
Version License PHP version Categories
simple-combat 1.0GNU General Publi...5.0PHP 5, Games, Artificial intelligence
Description 

Author

This class can simulate a combat between attacker and defender troops.

It takes as input the number of troops of an attacker and a defender in terms of men with hands, switchblades and guns.

The class simulates a battle by determine which army has more points assuming the loser army will have no survivors.

Innovation Award
PHP Programming Innovation award nominee
May 2013
Number 10
Web based combat simulation games are very interesting for many enthusiasts.

This class can help implementing the part of the simulation of combats that evaluates the outcome of battles based on several aspects of each of the enemies.

Manuel Lemos
Picture of Hossam Suliman
  Performance   Level  
Name: Hossam Suliman <contact>
Classes: 5 packages by
Country: Saudi Arabia Saudi Arabia
Age: 34
All time rank: 11983 in Saudi Arabia Saudi Arabia
Week rank: 118 Up2 in Saudi Arabia Saudi Arabia Up
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • screenshot.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example of class usage.
Accessible without login Image file gun.png Icon Gun icon.
Accessible without login Image file hand.png Icon Hand icon.
Plain text file SimpleCombat.class.php Class Main class.
Accessible without login Image file switchblade.png Icon Switchblade icon.

 Version Control Unique User Downloads Download Rankings  
 0%
Total:775
This week:1
All time:4,365
This week:257Up
User Ratings User Comments (1)
 All time
Utility:85%StarStarStarStarStar
Consistency:95%StarStarStarStarStar
Documentation:-
Examples:90%StarStarStarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:1268