Skip to content

Commit d8f7e74

Browse files
author
Paulina Sprawka
authored
Update README.md
1 parent c2ddb84 commit d8f7e74

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,29 @@ cd 42SV-Corewar/ASM
2424
make
2525
./asm <your_champ.s>
2626
```
27-
The exemplary champs avaliable in `~/42SV-Corewar/ASM/champions/` directory.
27+
for example: `./asm champions/terence.s` and `./asm champions/Gagnant.s`
28+
</br>
29+
More champs avaliable in `~/42SV-Corewar/ASM/champions/` directory.
2830
</br></br>
2931

32+
## VM
33+
from assembler directory:
34+
```
35+
cd ../VM
36+
make
37+
38+
./corewar [-dump nbr_cycles] [[-n number] champion1.cor] ...
39+
```
40+
for example:
41+
```
42+
cp ../ASM/champions/Gagnant.cor ../ASM/champions/terence.cor .
43+
./corewar -dump 1 Gagnant.cor terence.cor
44+
```
45+
will show you the inital state of the game
46+
![](imgs/cor1.png)
47+
and `./corewar -dump 10000 Gagnant.cor terence.cor` to see the state of the game after `-dump` cycyles:
48+
![](imgs/cor2.png)
49+
50+
3051
## Made by [Terence](https://github.com/tle-huu) (VM) and [Me](https://github.com/psprawka) (ASM) 🇵🇱🇫🇷
3152
</br>

0 commit comments

Comments
 (0)