Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Projet_info
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
TRAN Alain
Projet_info
Commits
dc534247
Commit
dc534247
authored
Mar 31, 2020
by
TRAN Alain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add README.md
parent
9f7aae98
Pipeline
#476
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
JoueurOrdi
JoueurOrdi
+42
-0
No files found.
JoueurOrdi
0 → 100644
View file @
dc534247
package
tictactoecodingame
;
/**
*
@
author
Franck
*/
public
class
JoueurOrdi
extends
Joueur
{
boolean
ponder
;
//
Si
vrai
l
'ordinateur réfléchi pendant la reflexion de son adversaire
AlgoRecherche algoRecherche;
public JoueurOrdi(String _nom) {
super(_nom);
ponder = false;
}
public JoueurOrdi( String _nom , AlgoRecherche _algo , boolean _ponder ) {
super( _nom );
algoRecherche = _algo;
ponder = _ponder;
}
public JoueurOrdi( String _nom , AlgoRecherche _algo ) {
this( _nom , _algo , false );
}
public AlgoRecherche getAlgoRecherche() {
return algoRecherche;
}
public void setAlgoRecherche(AlgoRecherche _algoRecherche) {
algoRecherche = _algoRecherche;
}
public Coup joue(Plateau _plateau ) {
Coup coupOrdi;
coupOrdi = algoRecherche.meilleurCoup(_plateau , this , ponder);
return coupOrdi;
}
}
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