Last active
March 9, 2018 21:04
-
-
Save b0ndurant/03f99fe11be98739a98ef24443678bfc to your computer and use it in GitHub Desktop.
quete conditions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$weapons = ['fists', 'whip', 'gun']; | |
$opponentWeapon = $weapons[rand(0,2)]; | |
if ($opponentWeapon == 'fists') { | |
$indiana = 'gun'; | |
} elseif ($opponentWeapon == 'whip') { | |
$indiana = 'fists'; | |
} elseif ($opponentWeapon == 'gun') { | |
$indiana = 'whip'; | |
} | |
echo 'opponent Weapon use '.$opponentWeapon.' and indiana use '.$indiana; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment