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
26387090
Commit
26387090
authored
8 years ago
by
Felton Samuel
Browse files
Options
Downloads
Patches
Plain Diff
fixed alternate start
parent
b8a621a7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AI/src/game/penguin.cpp
+0
-1
0 additions, 1 deletion
AI/src/game/penguin.cpp
AI/src/mcts/test_mcts_two_players.hpp
+2
-4
2 additions, 4 deletions
AI/src/mcts/test_mcts_two_players.hpp
with
2 additions
and
5 deletions
AI/src/game/penguin.cpp
+
0
−
1
View file @
26387090
...
...
@@ -480,7 +480,6 @@ namespace game
int
tile
=
free
[
rand
];
free
.
erase
(
std
::
remove
(
free
.
begin
(),
free
.
end
(),
tile
),
free
.
end
());
if
(
i
<
max1Fish
)
{
s
.
one_fish
|=
(
long
)
1
<<
tile
;
}
else
if
(
i
<
max1Fish
+
max2Fish
)
{
s
.
two_fish
|=
(
long
)
1
<<
tile
;
...
...
This diff is collapsed.
Click to expand it.
AI/src/mcts/test_mcts_two_players.hpp
+
2
−
4
View file @
26387090
...
...
@@ -206,14 +206,14 @@ void test_mcts_two_players<Game>::self_play(Game g, const heuristic<Game>& h1, c
game
::
config
&
c
=
game
::
config
::
get_config
();
auto
state
=
g
.
get_state
();
auto
the_turk_v1
=
make_mcts_two_players
(
g
,
c
.
get_think_time
(),
0.6
,
4
,
h1
);
auto
the_turk_v1
=
make_mcts_two_players
(
g
,
c
.
get_think_time
(),
1.0
,
4
,
h1
);
auto
the_turk_v2
=
make_mcts_two_players
(
g
,
c
.
get_think_time
(),
0.6
,
2
,
h2
);
std
::
string
result_directory
(
get_test_results_directory
());
int
nb_win_v1
=
0
,
nb_win_v2
=
0
,
nb_draw
=
0
;
for
(
unsigned
int
i
=
0
;
i
<
c
.
get_game_count
();
++
i
)
{
//std::cout << i << std::endl;
if
(
i
%
2
==
1
)
if
(
i
%
2
==
0
)
{
state
=
game
::
penguin
::
random_start_state
();
}
...
...
@@ -225,9 +225,7 @@ void test_mcts_two_players<Game>::self_play(Game g, const heuristic<Game>& h1, c
while
(
!
g
.
end_of_game
())
{
++
k
;
// cout << c4 << endl;
if
((
i
%
2
==
0
&&
g
.
current_player
()
==
0
)
||
(
i
%
2
==
1
&&
g
.
current_player
()
==
1
))
{
if
(
the_turk_v1_last_move
!=
-
1
&&
the_turk_v2_last_move
!=
-
1
)
...
...
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