PHP Classes

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 557 This week: 3All time: 5,077 This week: 399Up
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
Name: Hossam Suliman <contact>
Classes: 5 packages by
Country: Saudi Arabia Saudi Arabia
Age: 26
All time rank: 12923 in Saudi Arabia Saudi Arabia
Week rank: 412 Up1 in Saudi Arabia Saudi Arabia Up
Innovation award
Innovation award
Nominee: 1x

  • 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:557All time:5,077
 This week:3This week:399Up
 User Comments (1)