Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 511 This week: 5All time: 5,227 This week: 372Up
Version License PHP version Categories  
simple-combat 1.0GNU General Public Lice...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
Name: Hossam Suliman <contact>
Classes: 5 packages by
Country: Saudi Arabia Saudi Arabia
Age: 25
All time rank: 13273 in Saudi Arabia Saudi Arabia
Week rank: 246 Up1 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:511All time:5,227
 This week:5This week:372Up
 User Comments (1)