Skip to content
Permalink
Browse files

Remove print statement, increase ply

  • Loading branch information
joesweeney committed Apr 17, 2017
1 parent cef40a5 commit 03cfde65e0e45312a49546a5d487fb8ef8739778
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/RmCheckersClient.java
@@ -144,7 +144,7 @@ else if(player == 2) { // white
readAndEcho(); // move query
}
while(currentState.actions().size()>0){
Move myMove = ai.minimax(currentState, 3);
Move myMove = ai.minimax(currentState, 8);
writeMessageAndEcho(myMove.toString());
if(!applyMove(myMove.toString())) {
System.out.println("couldn't apply my move");
@@ -171,7 +171,6 @@ public String parseMove(String msg) {

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

0 comments on commit 03cfde6

Please sign in to comment.
You can’t perform that action at this time.