New answers tagged game
1
vote
Re: C++ 4X Game
Just seperating the game_logic from input processing has made a huge difference in terms of code clarity. In this review, I will start with nitpicks with the ...
1
vote
Casino Number Guessing Game
seems pretty solid, I only have 2 small things to say: first inside bool continuePlaying() you don't need Ternary Operator you can just write it as ...
1
vote
"Rock Paper Scissors" game
The code looks good and well-organized.
Here are a few suggestions:
Use const wherever possible to make the code more readable and safe. For example, in ...
8
votes
Accepted
"Rock Paper Scissors" game
Overview
I don't like how you are simply passing strings around for the values. Its simple but not very optimal. I would create some enum types to represent the different states (Win, Lose, Draw) and/...
7
votes
"Rock Paper Scissors" game
Computing pcSelection can be factored out into a separate function.
If users enter an invalid choice, promptUserInput still ...
Top 50 recent answers are included
Related Tags
game × 1936python × 495
beginner × 419
java × 411
c++ × 301
javascript × 228
object-oriented × 206
c# × 195
python-3.x × 183
tic-tac-toe × 135
performance × 130
console × 99
playing-cards × 91
c × 72
rock-paper-scissors × 71
hangman × 64
random × 51
swing × 51
c++11 × 48
dice × 47
snake-game × 47
pygame × 46
algorithm × 44
objective-c × 44
community-challenge × 43