-
Notifications
You must be signed in to change notification settings - Fork 2
Ted96/quoridor
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Quoridor game in C
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Run with:
gcc -o <out> quoridor.c
./<out>
To show available commands / help : type "list_commands" in game
Board layout (array):
(y)
0 1 2 3 4 5 6 7 8
1
2
(x) 3
4
5
6
7
8
showboard:
A B C D E F G H I
+---+---+---+---+---+---+---+---+---+
9 | | | | | B | | | | | 9
+---+---+---+---+---+---+---+---+---+
8 | | | | | | | | | | 8
+---+---+---+---+---+---+---+---+---+
7 | | | | | | | | | | 7
+---+---+---+---+---+---+---+---+---+
6 | | | | | | | | | | 6
+---+---+---+---+---+---+---+---+---+
5 | | | | | | | | | | 5
+---+---+---+---+---+---+---+---+---+
4 | | | | | | | | | | 4
+---+---+---+---+---+---+---+---+---+
3 | | | | | | | | | | 3
+---+---+---+---+---+---+---+---+---+
2 | | | | | | | | | | 2
+---+---+---+---+---+---+---+---+---+
1 | | | | | W | | | | | 1
+---+---+---+---+---+---+---+---+---+
A B C D E F G H I
Walls are implemented as a 2D array of struct "wall", (struct wall is basically the wall direction)
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
About
Quoridor game in C
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published