https://github.com/errornointernet/guess
Random number guessing game in x86-64 assembly.
https://github.com/errornointernet/guess
asm x86 x86-64
Last synced: 5 months ago
JSON representation
Random number guessing game in x86-64 assembly.
- Host: GitHub
- URL: https://github.com/errornointernet/guess
- Owner: ErrorNoInternet
- License: lgpl-3.0
- Created: 2024-08-17T09:44:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-17T14:26:20.000Z (almost 2 years ago)
- Last Synced: 2024-12-29T17:57:31.424Z (over 1 year ago)
- Topics: asm, x86, x86-64
- Language: Assembly
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# guess
Random number guessing game in x86-64 assembly.
```
$ gcc -nostdlib guess.S -o guess
$ ./guess
welcome to the number guessing game!
you have 7 tries to guess a number between 1 and 100.
enter your guess: 50
too low!
you have 6 tries to guess a number between 1 and 100.
enter your guess: 75
too low!
you have 5 tries to guess a number between 1 and 100.
enter your guess: 85
too low!
you have 4 tries to guess a number between 1 and 100.
enter your guess: 95
too low!
you have 3 tries to guess a number between 1 and 100.
enter your guess: 98
congratulations, you won!
```