repositories
/
Project_algorithmic_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code cleanup and fix the logic behind the player constants number
[Project_algorithmic_C.git]
/
lib
/
constants.c
diff --git
a/lib/constants.c
b/lib/constants.c
index 66728da6e88b7dbabf2416cb8f34df16c4c402ad..289bf044d315109ecaedd536e444c2b3651d61a0 100644
(file)
--- a/
lib/constants.c
+++ b/
lib/constants.c
@@
-23,12
+23,12
@@
//const unsigned int board_size = 8;
const unsigned int empty = 0;
//const unsigned int board_size = 8;
const unsigned int empty = 0;
-const unsigned int
white
= 1;
-const unsigned int
black
= 2;
+const unsigned int
black
= 1;
+const unsigned int
white
= 2;
/* FIXME: reuse the two above variables would be better */
/* FIXME: reuse the two above variables would be better */
-const unsigned int player_one =
2
; /* first player is black */
-const unsigned int player_two =
1
;
+const unsigned int player_one =
1
; /* first player is black */
+const unsigned int player_two =
2
;
const unsigned int hint_allowed = 3;
const unsigned int hint_forbidden = 4;
const unsigned int hint_allowed = 3;
const unsigned int hint_forbidden = 4;