Numblere was my first-ever project, a high school project I worked on in 2022, built using Assembly (8086). This game is a mathematical guessing game, inspired by Wordle, but with equations instead of words. Players must guess the correct mathematical equation using numbers and operators while receiving color-coded feedback on their guesses.
-
Mathematical Guessing Gameplay:
- Players attempt to guess a random equation.
- Feedback colors indicate correct/misplaced numbers and operators.
- Equations follow specific rules (e.g., exactly one '=', no remainder in division).
-
Graphical User Interface (GUI):
- VGA Mode (13h) for graphical rendering.
- Mouse-based input using interrupt 33h.
- Keyboard support for confirmation.
-
Random Equation Selection:
- Equations are randomly selected from a predefined list.
- Uses the BIOS timer (interrupt 1Ah, 40h:6Ch) for randomization.
-
Win/Loss Handling:
- Players have a limited number of attempts.
- Displays victory or defeat screens.
- Option to restart or exit after finishing a round.
To run Numblere, follow these steps:
Numblere runs in a DOS environment. Install DOSBox on your system:
You need TASM (Turbo Assembler) and TLINK (Turbo Linker) to compile the game.
- Open DOSBox and navigate to the directory where
Numblere.asmis located. - Run the following commands to assemble and link the file:
tasm Numblere.asm tlink Numblere.obj
Once compiled, run the game using:
Numblere.exe
This will launch the graphical game interface inside DOSBox.
- Each guess must be a valid mathematical equation.
- Operators must be placed correctly (e.g., no consecutive operators, must have one
=). - Numbers must be positive integers.
- No remainder in division (integer division only).
- Feedback colors:
- Green = Correct number in the correct place.
- Yellow = Number exists but is misplaced.
- Black = Number/operator does not exist in the equation.
- Mouse Click: Select numbers and operators.
- Enter: Submit the equation.
- Delete: Clear the current input.
- Y: Play again after winning/losing.
- N: Exit the game.
├── Numblere.asm # Assembly source code
├── Numblere.exe # Compiled executable (generated after running TLINK)
├── Numblere.obj # Object file (generated after running TASM)
For any questions or feedback, feel free to reach out!