Questions tagged [number-guessing-game]
This tag is used when the program's purpose is to guess a number of your choosing or have you guess a number of the program's choosing.
195 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
4
votes
3
answers
140
views
Number guessing game in Rust
I am learning Rust and would like a review to make sure I am following best Rust practices before continuing. The user enters a number between 1 and 100 up to 6 times to guess the randomly-generated ...
7
votes
3
answers
2k
views
Simple casino game
This is my first program, ever. It comprises a choice of casino games:
A number guessing game in which you guess a number 1 through ten. If you guess the correct number, you double the money you bet....
5
votes
3
answers
177
views
Number Guesser Game in plain C
I am trying to relearn the C language and thought making small projects would be a good way to do it. The code I wrote works perfectly as intended.
I am just here to see if there are any better ...
10
votes
5
answers
1k
views
Guess-the-number game in Python
This is just something I did in my free time. How can I improve my code as a beginner?
Is there an alternative to using isalpha()
What are other efficient ways to ...
2
votes
2
answers
161
views
A game where the player guesses the computer's number
I am fairly new to programming, and I recently finished part of one of my projects, a guessing game.
The part I completed was the game mode where the player guesses the computer's number. I'm quite ...
1
vote
1
answer
138
views
Guess the number game with an easy and hard mode
I have started learning to program in Python. I watched a YouTube course for beginners creating the well known "guess the number" game. I have attempted to write an improved version of the ...
1
vote
3
answers
175
views
Random number guessing game (1-100)
I'm making a random number guessing game in Python. Any suggestions? I'm going to add a restart button to it.
...
7
votes
3
answers
846
views
Number Guessing Game in C++
I am very new to C++ and I've tried to write a simple number guessing game. I know it is a basic task but I'd really appreciate any feedback that could help me improve my writing. Thanks!
...
3
votes
2
answers
125
views
Learn.cpp chapter 8 exercise add error handling to the high low game
I did the exercise of LearnCpp.com's Chapter 8 summary and quiz and I'm still learning...
Question #3
Implement a game of hi-lo. First, your program should pick a random integer between 1 and 100. The ...
5
votes
2
answers
909
views
Identifying unnecessary attributes in a Python class?
I have commented out two attributes (in random_number_guesser.py) which I believe are unnecessary.
Am I correct in assuming that, because the code runs correctly without their implementation, they ...
6
votes
1
answer
157
views
RNG Minigame In Python - Best Practices & Possible Improvements?
Recently, I got into programming with Python as a fun little side hobby. After watching a bunch of YouTube tutorials (to learn about IDE's, variables, etc.), I finally got to the point where I was ...
9
votes
2
answers
1k
views
Number guessing game for x86
I'm new to assembly and I've just finished this guessing game that I wanted to make to improve my skills in this language. It runs in a Unix environment and does the following:
generates a random ...
4
votes
2
answers
740
views
New York Times' Digits Game Solver
I wrote an algorithm to solve the New York Times' Puzzle: Digits.
You could play the game here.
The rules of the game are as follow:
You were given 6 numbers and you could use simple operations (plus, ...
7
votes
3
answers
2k
views
3
votes
1
answer
155
views
End to End testing of user interaction in Rust
I am interested in any kind of possible improvement to this method of testing a Rust program with user interaction in an end-to-end manner (simulating user input and asserting a certain program output ...