Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Groupe3-TicTacToe
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BAHRMAN Louis
Groupe3-TicTacToe
Commits
16f9b55e
Commit
16f9b55e
authored
Apr 28, 2020
by
Timothy LAIRD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug Commit 2
parent
6ab3011a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
AlgoRechercheMCTS.class
build/classes/tictactoecodingame/AlgoRechercheMCTS.class
+0
-0
Arbre.class
build/classes/tictactoecodingame/Arbre.class
+0
-0
ArbreMCTS.class
build/classes/tictactoecodingame/ArbreMCTS.class
+0
-0
AlgoRechercheMCTS.java
src/tictactoecodingame/AlgoRechercheMCTS.java
+4
-4
ArbreMCTS.java
src/tictactoecodingame/ArbreMCTS.java
+2
-2
No files found.
build/classes/tictactoecodingame/AlgoRechercheMCTS.class
View file @
16f9b55e
No preview for this file type
build/classes/tictactoecodingame/Arbre.class
deleted
100644 → 0
View file @
6ab3011a
File deleted
build/classes/tictactoecodingame/ArbreMCTS.class
0 → 100644
View file @
16f9b55e
File added
src/tictactoecodingame/AlgoRechercheMCTS.java
View file @
16f9b55e
...
@@ -14,17 +14,17 @@ import java.util.Random;
...
@@ -14,17 +14,17 @@ import java.util.Random;
* @author timot
* @author timot
*/
*/
public
class
AlgoRechercheMCTS
extends
AlgoRecherche
{
public
class
AlgoRechercheMCTS
extends
AlgoRecherche
{
Arbre
search
;
Arbre
MCTS
search
;
public
AlgoRechercheMCTS
(
Joueur
player
,
Joueur
opponent
){
public
AlgoRechercheMCTS
(
Joueur
player
,
Joueur
opponent
){
search
=
new
Arbre
(
player
,
opponent
);
search
=
new
Arbre
MCTS
(
player
,
opponent
);
}
}
@Override
@Override
public
Coup
meilleurCoup
(
Plateau
_plateau
,
Joueur
_joueur
,
boolean
_ponder
)
{
public
Coup
meilleurCoup
(
Plateau
_plateau
,
Joueur
_joueur
,
boolean
_ponder
)
{
search
=
new
Arbre
(
search
.
root
().
player
(),
search
.
root
().
opponent
());
search
=
new
Arbre
MCTS
(
search
.
root
().
player
(),
search
.
root
().
opponent
());
Node
root
=
search
.
root
();
Node
root
=
search
.
root
();
root
.
board
(
(
new
Node
(
_plateau
)).
board
()
);
root
.
board
(
_plateau
);
int
iterations
=
0
;
int
iterations
=
0
;
Random
seed
=
new
Random
();
Random
seed
=
new
Random
();
while
(
iterations
<
1
){
while
(
iterations
<
1
){
...
...
src/tictactoecodingame/Arbre.java
→
src/tictactoecodingame/Arbre
MCTS
.java
View file @
16f9b55e
...
@@ -9,10 +9,10 @@ package tictactoecodingame;
...
@@ -9,10 +9,10 @@ package tictactoecodingame;
*
*
* @author timot
* @author timot
*/
*/
public
class
Arbre
{
public
class
Arbre
MCTS
{
Node
root
;
Node
root
;
public
Arbre
(
Joueur
pl
,
Joueur
o
){
public
Arbre
MCTS
(
Joueur
pl
,
Joueur
o
){
root
=
new
Node
(
null
,
pl
,
o
,
null
);
root
=
new
Node
(
null
,
pl
,
o
,
null
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment