Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $weapons = ['fists', 'whip', 'gun'];
- $opponentWeapon = $weapons[rand(0,2)];
- echo $opponentWeapon;
- switch ( $opponentWeapon)
- {
- case 'fists':
- echo ' '. 'bat le whip ' . 'mais perd contre le gun' ;
- break;
- case 'whip':
- echo ' '. 'bat le gun' . ' mais perd contre le fists' ;
- break;
- case 'gun':
- echo ' '. 'bat le fists' . ' mais perd contre le fouet' ;
- break;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement