As of May 31, 2023, we have updated our Code of Conduct.

New answers tagged

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 ...
Thomas Weller's user avatar
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 ...
Ξένη Γήινος's user avatar
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 ...
sbottingota's user avatar
3 votes

simple connect four game

Add guards: At the top of the file, for the non-standard function sleep() /Sleep(): ...
Haris's user avatar
  • 1,121
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 ...
pacmaninbw's user avatar
  • 22.4k
2 votes

simple Rock, paper, scissors game

These hard-coded values may give you portability problems: ...
Toby Speight's user avatar
  • 69.1k
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: ...
sbottingota's user avatar

Top 50 recent answers are included