Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change improved requirement
  • Loading branch information
sas12028 committed Apr 26, 2017
1 parent 81c065e commit 8593fa6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/CheckersGameState3.java
Expand Up @@ -602,7 +602,6 @@ public class CheckersGameState3 implements CheckersGameState{
return false;
}
/* feature: Dog pattern*/
<<<<<<< HEAD
public boolean isDog(int player){
if(player==1){
if((this.board[0]==1 || this.board[0]==3) && (this.board[4]==2||this.board[4]==2)){
Expand All @@ -614,10 +613,6 @@ public class CheckersGameState3 implements CheckersGameState{
return true;
}
}
=======
public boolean isDog(int player){

>>>>>>> fa404932a69ef682b050341bcfdb0b3f7f825bf2
return false;
}
public boolean isTerminal(){
Expand Down
2 changes: 1 addition & 1 deletion src/Learn.java
Expand Up @@ -100,7 +100,7 @@ public class Learn{

public static boolean improved(CheckersGameState i, int player){
CheckersGameState3 s = (CheckersGameState3) i;
return s.numPieces(player) >= (4 + s.numPieces(1 + (1 - (player-1))));
return s.numPieces(player) >= (2 + s.numPieces(1 + (1 - (player-1))));
}

}

0 comments on commit 8593fa6

Please sign in to comment.