Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tylpk1216/1a2b
This is a game that user guesses the number of computer.
https://github.com/tylpk1216/1a2b
assembly game linux
Last synced: 17 days ago
JSON representation
This is a game that user guesses the number of computer.
- Host: GitHub
- URL: https://github.com/tylpk1216/1a2b
- Owner: tylpk1216
- License: mit
- Created: 2018-09-27T02:45:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-01T04:17:09.000Z (over 6 years ago)
- Last Synced: 2024-11-27T15:40:35.271Z (3 months ago)
- Topics: assembly, game, linux
- Language: Assembly
- Size: 34.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 1A2B
This is a game that user guesses the number of computer.
It is written by x86 Assembly(AT&T syntax).### How to build it
```
1. Prepare Linux environment.
2. as guessnum.s --32 -o guessnum.o
3. ld guessnum.o -m elf_i386 -o guessnum.out
```### Library
```
Pure Assembly code. Any special operations are offered by OS system calls.
```### Game rules
```
Suppose the answer is "9527", user must try to guess the true answer."A" means the digit is at right position.
"B" means the digit is at wrong position.* "1234" -> 0A1B
* "5678" -> 0A2B
* "9726" -> 2A1B
* "9627" -> 3A0B
* "9527" -> 4A0B
```### Screenshot
![running](/image/run.png)