public class RandomTactics implements Tactics{
	private Othello othello;
	public RandomTactics(Othello othello){
		this.othello = othello;
	}
	public int where(Kyokumen k){
		int ableplace[] = new int[64];
		int cnt = 0;
		for(int i = 0;i < 8;i++){
			for(int j = 0;j < 8;j++){
				if(k.masuPlaceCheck(i,j,k.getTurn())){
					ableplace[cnt] = i * 10 + j;
					cnt++;
				}
			}
		}
		if(cnt == 0){
			return -1;
		}else{
			return ableplace[(int)(Math.random()* cnt)];
		}
	}
}