Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stefano Cobelli
205_hw02
Commits
4df4606e
Commit
4df4606e
authored
Nov 14, 2014
by
Stefano Cobelli
Browse files
Controller fixed to train AI
parent
7e1abaaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/controller/TTTController.java
View file @
4df4606e
...
...
@@ -112,7 +112,9 @@ public class TTTController implements ActionListener {
while
(
aiGames
.
isPlayable
())
{
((
AutoPlayable
)
aiGames
.
getCurPlayer
()).
decideMove
();
aiGames
.
switchTurn
();
System
.
out
.
println
(
aiGames
.
getBoard
());
}
if
(
aiGames
.
isWinFor
(
randGuy
))
{
aiGuy
.
loss
();
}
aiGames
.
newGame
();
}
...
...
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