PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2013-05-08 (3 years ago) RSS 2.0 feedStarStarStar 54%Total: 621 This week: 1All time: 4,836 This week: 1,047Up
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
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:621
This week:1
All time:4,836
This week:1,047Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:1638