What is oneDependsOnAnother? Well... it is to see if the move is in a position and to make something it depends on another move. For example, to make this shimari you need first a komoku. If there is that komoku move and the move is in the 3-5 then return true. Let's see this in code:
public boolean oneDependsOnAnother(int move,int moveEvaluated, int moveDepend, Board board){
boolean isGood=false;
if(move==moveEvaluated && board.getMove(moveDepend)!=0){
isGood=true;
}
return isGood;
}
I can do the same now with other combinations, methods should be similar.
No comments:
Post a Comment