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
StarStarStar 56%Total: 778 All time: 4,363 This week: 571Up
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: 35
All time rank: 11983 in Saudi Arabia Saudi Arabia
Week rank: 106 Up4 in Saudi Arabia Saudi Arabia Down
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:778
This week:0
All time:4,363
This week:571Up
User Ratings User Comments (1)
 All time
Utility:79%StarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1768