<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Showing examples of construction of generals, as well as movement and combat resolution</title> </head> <?php require_once 'general.php'; require_once 'battle.php'; //Test values for 2 generals $howe = new BritishGeneral("Howe", "Boston", 0, 6, 3, 1, 0, 5); $washington = new AmericanGeneral("Washington", "Lexington Concord", 1, 5, 1, 2, 2, 5); //Examples of a combat resolution from U.S. and British perpsective $usAttackBattle = new Battle($washington, $howe); $britAttackBattle = new Battle($howe, $washington); echo "Example of a battle where the U.S. player attacks:<br />"; $usAttackBattle->combatResolution(); echo "<br /><br />Example of a battle where the British player attacks:<br />"; $britAttackBattle->combatResolution(); ?> </html>