Implemented basic command-line options

This commit is contained in:
AnnaSnoeijs 2025-06-06 21:31:59 +02:00
parent 197445de70
commit 92f4057583
3 changed files with 76 additions and 12 deletions

16
test Normal file
View file

@ -0,0 +1,16 @@
AnnaConnect version 0.0.4, Copyright (C) Anna Snoeijs
AnnaConnect comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain condtions. See `./out/connect4_vt100.elf --license`
1 2 3 4 5 6 7
6 [ ][ ][ ][ ][ ][ ][ ] 6
5 [ ][ ][ ][ ][ ][ ][ ] 5
4 [ ][ ][ ][ ][ ][ ][ ] 4
3 [ ][ ][ ][ ][ ][ ][ ] 3
2 [ ][ ][ ][ ][ ][ ][ ] 2
1 [ ][ ][ ][ ][ ][ ][ ] 1
1 2 3 4 5 6 7 ┌───────────────┬────┬────┐│ player │ 0 │ 1 │├───────────────┼────┼────┤│ vertical │ │ ││ horizontal │ │ ││ diagonal up │ │ ││ diagonal down │ │ │├───────────────┼────┼────┤│ total │ │ │└───────────────┴────┴────┘
Wher player 0 put?