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
Container Registry
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
Felton Samuel
pingouins
Commits
b0540c8f
Commit
b0540c8f
authored
8 years ago
by
Bariatti Francesco
Browse files
Options
Downloads
Patches
Plain Diff
Added example game
parent
ed163020
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/game/penguin.hpp
+11
-11
11 additions, 11 deletions
src/game/penguin.hpp
src/mcts/test_mcts_two_players.hpp
+1
-1
1 addition, 1 deletion
src/mcts/test_mcts_two_players.hpp
with
12 additions
and
12 deletions
src/game/penguin.hpp
+
11
−
11
View file @
b0540c8f
...
@@ -13,19 +13,19 @@ namespace game
...
@@ -13,19 +13,19 @@ namespace game
{
{
struct
penguin_state
struct
penguin_state
{
{
uint64_t
one_fish
=
638390472297737852
;
//Position of one-fish tiles (bitboard)
uint64_t
one_fish
=
533050011236269409
;
//Position of one-fish tiles (bitboard)
uint64_t
two_fish
=
513912844679577984
;
//Position of two-fish tiles (bitboard)
uint64_t
two_fish
=
40552008684274318
;
//Position of two-fish tiles (bitboard)
uint64_t
three_fish
=
615868312588291
;
//Position of three-fish tiles (bitboard)
uint64_t
three_fish
=
579319484686303248
;
//Position of three-fish tiles (bitboard)
//Penguins
//Penguins
uint32_t
p1_red
=
4
2
;
uint32_t
p1_red
=
2
4
;
uint32_t
p2_red
=
39
;
uint32_t
p2_red
=
28
;
uint32_t
p3_red
=
2
8
;
uint32_t
p3_red
=
4
8
;
uint32_t
p4_red
=
1
0
;
uint32_t
p4_red
=
5
0
;
uint32_t
p1_blue
=
1
9
;
uint32_t
p1_blue
=
1
0
;
uint32_t
p2_blue
=
3
2
;
uint32_t
p2_blue
=
1
3
;
uint32_t
p3_blue
=
4
3
;
uint32_t
p3_blue
=
3
5
;
uint32_t
p4_blue
=
49
;
uint32_t
p4_blue
=
32
;
int
score_red
=
0
;
int
score_red
=
0
;
int
score_blue
=
0
;
int
score_blue
=
0
;
...
...
This diff is collapsed.
Click to expand it.
src/mcts/test_mcts_two_players.hpp
+
1
−
1
View file @
b0540c8f
...
@@ -69,7 +69,7 @@ namespace mcts
...
@@ -69,7 +69,7 @@ namespace mcts
void
test_mcts_two_players
<
Game
>::
play
(
Game
g
)
void
test_mcts_two_players
<
Game
>::
play
(
Game
g
)
{
{
// ProfilerStart("theturk.prof");
// ProfilerStart("theturk.prof");
auto
the_turk
=
make_mcts_two_players
(
g
,
2
000
,
0.4
,
8
);
auto
the_turk
=
make_mcts_two_players
(
g
,
5
000
,
0.4
,
8
);
std
::
cout
<<
"play one game"
<<
std
::
endl
;
std
::
cout
<<
"play one game"
<<
std
::
endl
;
std
::
cout
<<
"who's first? (h)uman/(c)omputer "
;
std
::
cout
<<
"who's first? (h)uman/(c)omputer "
;
std
::
string
ans
;
std
::
string
ans
;
...
...
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