Skip to content
Permalink
Browse files

Change minPly for endgame in client

  • Loading branch information
joesweeney committed Apr 29, 2017
1 parent f511ac8 commit bc766346ee5827f8ceb00a0ac249a9d0d0dc5937
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/RmCheckersClient.java
@@ -150,8 +150,7 @@ public static void main(String[] argv){

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
@@ -164,7 +163,7 @@ else if(player == 2) { // white
}
while(currentState.actions().size()>0){
if(currentState.isEndGame() && minPly < maxPly){
minPly+=incPly;
minPly = maxPly;
}
currentState.printState();
Move myMove = ai.minimax(currentState, minPly);

0 comments on commit bc76634

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