+ 2

Rock paper game with c++

Does anyone know how to make a Rock Paper Scissors game using C++ and can someone give an example of a code ?

12th Oct 2018, 4:50 PM
vanni
5 Answers
+ 1
seems pretty easy to do. you need rand() if youre playing against computer, 3 variables that will hold the 3 choices, the logical outcome(rock vs scissor = rock wins), and the implementation is up to your creativity.
12th Oct 2018, 11:47 PM
Kuyondo
Kuyondo - avatar
+ 6
click on { } then search for rock paper, also you have option to search only c++ codes. you'll find many rock paper scissors codes
12th Oct 2018, 5:23 PM
voja
voja - avatar
+ 3
If you know rand() you can easily make it
12th Oct 2018, 5:03 PM
Fire Feathers
Fire Feathers - avatar
+ 1
Rock paper game ----------code------------ https://code.sololearn.com/cfnq633Xsrli/?ref=app
4th May 2020, 4:11 PM
SAN
SAN - avatar
- 1
Can someone give an example please of the code
14th Oct 2018, 1:31 AM
vanni