New answers tagged game
0
votes
"paper, rock, scissors" game
Thanks for posting your code and asking for feedback. You implemented the code and it works. You probably tested it. That's already a good step ahead. I see student's code which was not tested.
Now ...
2
votes
Accepted
2D Minecraft - infinite chunk system
Screen resolution
SIZE = (1365, 705) is plainly bad, users have different screen resolutions, setting a default resolution doesn't make sense at all, because on ...
3
votes
Accepted
Text based naval game
Your code is good, but there are a few improvements to be made.
First, the repeated code. You repeat the same code for player1 and ...
3
votes
simple connect four game
Add guards:
At the top of the file, for the non-standard function sleep() /Sleep():
...
3
votes
simple connect four game
General Observations
If you are a true beginner this code is pretty good because it uses functions. In particular, main() calling ...
2
votes
simple Rock, paper, scissors game
These hard-coded values may give you portability problems:
...
1
vote
simple Rock, paper, scissors game
This code is good, but it has a few problems.
Review
The options
Instead of handling rock, scissors and paper as strings, I'd use an enum:
...
Top 50 recent answers are included
Related Tags
game × 1920python × 489
beginner × 416
java × 409
c++ × 297
javascript × 226
object-oriented × 204
c# × 194
python-3.x × 182
tic-tac-toe × 130
performance × 128
console × 97
playing-cards × 91
c × 70
rock-paper-scissors × 70
hangman × 63
swing × 51
c++11 × 49
random × 49
dice × 47
pygame × 45
algorithm × 44
objective-c × 44
snake-game × 44
community-challenge × 43