You have to create a game namely rock, paper, scissors in the c language without using arrays,
Fantastic news! We've Found the answer you've been seeking!
Question:
You have to create a game namely rock, paper, scissors in the c language without using arrays, structures, and pointers.
use stdio.h library and loops statements. please give an explanation of code.
1) Both of the players have to type their choice, such as R, S, P. R represents rock, S represents Scissors, P represents paper.
2) If the chosen values are not appropriate type (error) and ask to retype the value again, additionally if the values are the same, ask to retype the choice again.
3) At the end, the program has to print the winner, and ask them to play a game again by typing (yes/Y) or any other value that means no and the game ends.
Related Book For
Fundamentals of Thermal-Fluid Sciences
ISBN: 978-0078027680
5th edition
Authors: Yunus A. Cengel, Robert H. Turner, John M. Cimbala
Posted Date: