Timeline for Rock, Paper, Scissors in C++
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 10, 2019 at 21:39 | comment | added | Andrew | Try to use arrays and loops instead of "if this or this or this or this", since you have a lot. Use either nested switches or conditionals for your decideOutcome logic, or maybe try a matrix (2D array) approach, e.g. 0 is rock, 1 paper, 2 scissors, then have a 2D lookup array with the index of the corresponding outcome as the values/elements in the array. Also yeah, use a do while loop and get rid of the useless quit variable. | |
Dec 9, 2019 at 22:35 | answer | added | scohe001 | timeline score: 9 | |
Dec 9, 2019 at 10:22 | answer | added | Roland Illig | timeline score: 4 | |
Dec 9, 2019 at 9:12 | answer | added | Laurent LA RIZZA | timeline score: 10 | |
Dec 9, 2019 at 3:24 | history | became hot network question | |||
Dec 9, 2019 at 0:00 | history | tweeted | twitter.com/StackCodeReview/status/1203826759659118592 | ||
Dec 8, 2019 at 21:33 | vote | accept | Jessica | ||
Dec 8, 2019 at 21:08 | comment | added | Edward | related: codereview.stackexchange.com/questions/213842/… | |
Dec 8, 2019 at 20:39 | answer | added | Edward | timeline score: 34 | |
Dec 8, 2019 at 19:19 | history | asked | Jessica | CC BY-SA 4.0 |