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
Clement Lucas
pingouins
Commits
ccaaeb00
Commit
ccaaeb00
authored
9 years ago
by
Bariatti Francesco
Browse files
Options
Downloads
Patches
Plain Diff
Pascal fix: The mcts now is reset after every move. It works!
parent
249a51d3
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/test_morpion.cpp
+2
-1
2 additions, 1 deletion
src/game/test_morpion.cpp
with
2 additions
and
1 deletion
src/game/test_morpion.cpp
+
2
−
1
View file @
ccaaeb00
...
...
@@ -59,8 +59,9 @@ namespace game
cout
<<
mor
<<
endl
;
if
(
mor
.
current_player
()
==
1
)
//It's circle turn (computer is circle)
{
mctsPlayer
.
reset
();
uint16_t
move
=
mctsPlayer
.
select_move
();
//
cout << "Computer played
" << mor.move_to_string(
move
)
<< endl;
cout
<<
"Computer played
move number "
<<
move
<<
endl
;
mor
.
play
(
move
);
}
else
//Human turn to play
...
...
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