File tree 1 file changed +22
-1
lines changed
1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,29 @@ cd 42SV-Corewar/ASM
24
24
make
25
25
./asm <your_champ.s>
26
26
```
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.
28
30
</br ></br >
29
31
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
+
30
51
## Made by [ Terence] ( https://github.com/tle-huu ) (VM) and [ Me] ( https://github.com/psprawka ) (ASM) 🇵🇱🇫🇷
31
52
</br >
You can’t perform that action at this time.
0 commit comments