Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change minPly for endgame in client
  • Loading branch information
joesweeney committed Apr 29, 2017
1 parent f511ac8 commit bc76634
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/RmCheckersClient.java
Expand Up @@ -150,8 +150,7 @@ public class RmCheckersClient {

public void playGame(int player) {
int minPly = 8;
int maxPly = 12;
int incPly = 7;
int maxPly = 15;
try {
String msg = readAndEcho(); // initial message
if(player == 1) { // black
Expand All @@ -164,7 +163,7 @@ public class RmCheckersClient {
}
while(currentState.actions().size()>0){
if(currentState.isEndGame() && minPly < maxPly){
minPly+=incPly;
minPly = maxPly;
}
currentState.printState();
Move myMove = ai.minimax(currentState, minPly);
Expand Down

0 comments on commit bc76634

Please sign in to comment.