Skip to main content
Share Your Experience: Take the 2024 Developer Survey
5 votes

Basic python rock papers scissors game (first code)

Traditionally it's Rock, Paper, Scissors instead of Rock, Paper, Scissor. You've attempted to validate whether the user input an integer, but what you've written doesn't work. You immediately attempt ...
Reinderien's user avatar
  • 62.1k
5 votes
Accepted

BlackJack in python

This submission is about performance, but it does not include any profiling measurements. language choice If you're looking for raw speed, interpreted python usually wouldn't be the first choice. ...
J_H's user avatar
  • 27.6k
5 votes
Accepted

Tic Tac Toe Basic C implementation

getchar() returns an int, not a char: Defined in header ...
Harith's user avatar
  • 6,872
4 votes
Accepted

Basic python rock papers scissors game (first code)

This is my first code review, so feel free to take it with a grain of salt. English is not my primary language, I apologize for any typos. General comment, if this is your first code, it is really ...
RomainL.'s user avatar
  • 294
3 votes
Accepted

rock paper scissors game in console

Math.floor((Math.random() * 100)/40); This will not result in equal probabilities of rock, ...
Raimund Krämer's user avatar
3 votes

Basic python rock papers scissors game (first code)

In addition to the good advice offered by the previous answer, here are some other suggestions. Use of whitespace around operators (=, ...
toolic's user avatar
  • 3,516
3 votes
Accepted

Dial up some obscure stats for the Chutes and Ladders game

CLI --help import argparse This works. And it's "batteries included". But consider doing "import typer" followed by ...
J_H's user avatar
  • 27.6k
2 votes

BlackJack in python

Overview The code layout is good, and you made good use of classes, functions and comments. Here are some suggestions to consider. DRY There is a lot of unnecessary repetition in lines like this: <...
toolic's user avatar
  • 3,516
2 votes

Text-based tic-tac-toe game in Python

Overview The code layout is good, you added ample docstrings and you used meaningful names for classes, functions and variables. When running the code, it handles unexpected input very well. For ...
toolic's user avatar
  • 3,516

Only top scored, non community-wiki answers of a minimum length are eligible