This is the first game I developed using C++ in a Linux Ubuntu environment!
1a1b is a two-player number guessing game where players try to guess each other’s 4-digit secret number. The game provides hints after each guess using 'a' and 'b':
- 'a' indicates that both the number and its position are correct.
- 'b' indicates that the number is correct but in the wrong position.
Players continue guessing until one correctly identifies the opponent’s number.
- The game starts with a "1a1b" background screen.
- Each player enters their name and 4-digit secret number.
-
Players take turns guessing the opponent's number.
-
After each guess, the program provides hints:
- Example:
- Jacob’s secret number: 1234
- Vernessa’s secret number: 5678
Turn 1
- Jacob guesses 8765 → 0a 4b (all digits correct but misplaced)
- Vernessa guesses 1256 → 2a 0b (two digits correct in the right place)
Turn 2
- Example:
-
The game continues until a player guesses the correct number.
- The program asks if players want to restart the game or exit.
- Two-player mode with interactive turn-based gameplay.
- Hint system to guide players toward the correct number.
- Replay option after each round.
- Clone the repository:
git clone https://github.com/Jacobshin04/1a1b-Number-Guessing-Game.git cd 1a1b-Number-Guessing-Game
Compile the program using g++:
g++ 1a1b.cpp -o 1a1b
Run the game:
./1a1b
Implementing a single-player mode with an AI opponent.
Adding a score-tracking system to track wins and losses.
Introducing customizable number lengths (e.g., 3-digit or 5-digit mode).
Have fun playing 1a1b and challenge your friends! 🎮
Let me know if you’d like any changes! 🚀



