Skip to content

u/iamsimonsta

In this archive from Jun 2025 to Feb 2026

0
posts
2
comments
0
media
2
score

Top comments

The first game I wrote was as simple as it gets - computer picks a random number between 1 and 20, gives you 10 goes to guess it, it tells you if you are too low, too high, or correct and do you want to play again?

Things I would consider that make it non stupid:

How tidy / optimal can you make the code?
Does computer always pick same random number, if so whey and how do you "seed" the generator?
What is the optimal method for guessing the number?
Does computer display emotion / personality when you enter out of range?
Does computer display attitude if it has already told you the number is lesser or greater than your current guess.
How much personality can you give a computer in simple program?
Can you get someone else to play the number guessing game and see if they can find a bug.

Alternative, use a sandbox like Roblox to satisfy your itch.

1 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.