Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)