Skip to content
Snippets Groups Projects
Commit 2ab3336c authored by Bariatti Francesco's avatar Bariatti Francesco
Browse files

Defined mask constants for checking if a player won

parent 02e4104f
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,16 @@ namespace game
const uint8_t CIRCLE = 0;
morpion_state state;
//WIN CONSTANTS
const uint16_t ROW1_MASK = 63;
const uint16_t ROW2_MASK = 455;
const uint16_t ROW3_MASK = 504;
const uint16_t COL1_MASK = 219;
const uint16_t COL2_MASK = 365;
const uint16_t COL3_MASK = 438;
const uint16_t DIA1_MASK = 238;
const uint16_t DIA2_MASK = 427;
static std::vector<std::vector<uint64_t>> cross_hash_values;
static std::vector<std::vector<uint64_t>> circle_hash_values;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment