Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pingouins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bariatti Francesco
pingouins
Commits
2ab3336c
Commit
2ab3336c
authored
9 years ago
by
Bariatti Francesco
Browse files
Options
Downloads
Patches
Plain Diff
Defined mask constants for checking if a player won
parent
02e4104f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/game/morpion.hpp
+10
-0
10 additions, 0 deletions
src/game/morpion.hpp
with
10 additions
and
0 deletions
src/game/morpion.hpp
+
10
−
0
View file @
2ab3336c
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment