Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write("1. Rock 2. Paper 3. Scissors\n>");
- while ((player_move != 1) && (player_move != 2) && (player_move != 3))
- {
- readf(" %s",&player_move);
- if ((player_move != 1) && (player_move != 2) && (player_move != 3))
- {
- write("\nInvalid choice.\n>");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement