Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove print statement, increase ply
  • Loading branch information
joesweeney committed Apr 17, 2017
1 parent cef40a5 commit 03cfde6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/RmCheckersClient.java
Expand Up @@ -144,7 +144,7 @@ public class RmCheckersClient {
readAndEcho(); // move query readAndEcho(); // move query
} }
while(currentState.actions().size()>0){ while(currentState.actions().size()>0){
Move myMove = ai.minimax(currentState, 3); Move myMove = ai.minimax(currentState, 8);
writeMessageAndEcho(myMove.toString()); writeMessageAndEcho(myMove.toString());
if(!applyMove(myMove.toString())) { if(!applyMove(myMove.toString())) {
System.out.println("couldn't apply my move"); System.out.println("couldn't apply my move");
Expand All @@ -171,7 +171,6 @@ public class RmCheckersClient {


public boolean applyMove(String move) { public boolean applyMove(String move) {
for(Move m : currentState.actions()) { for(Move m : currentState.actions()) {
System.out.println(move+" equals? "+m.toString());
if(move.equals(m.toString())) { if(move.equals(m.toString())) {
currentState = currentState.result(m); currentState = currentState.result(m);
return true; return true;
Expand Down

0 comments on commit 03cfde6

Please sign in to comment.