Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed bug
  • Loading branch information
Elaine Tsun authored and Elaine Tsun committed Apr 26, 2017
1 parent 93234de commit a5dd019
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/CheckersGameState3.java
Expand Up @@ -522,23 +522,28 @@ public class CheckersGameState3 implements CheckersGameState{
return false;
}
/* feature: bridge pattern*/
private boolean isBridge(int player){
public boolean isBridge(int player){
if(player == 1){
if((this.board[0]==1) && (this.board[2]==1){
if((this.board[0]==1) && (this.board[2]==1)){
return true;
}
}
else if(player == 2){
if((this.board[32]==2) && this.board[34]==2){
if((this.board[32]==2) && (this.board[34]==2)){
return true;
}
}
return false;
}
private boolean isTriangle(int player){
/* feature: triangle patter*/
public boolean isTriangle(int player){
return false;
}
/* feature: Dog pattern*/
public boolean isDog(int player){

return false;
}

public boolean isTerminal(){
return this.actions.size() == 0;
}
Expand Down

0 comments on commit a5dd019

Please sign in to comment.