Skip to content

Commit

Permalink
Remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
jjak0b committed Sep 10, 2022
1 parent 0dcbebb commit 29611e6
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions src/player/BestPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,41 +42,4 @@ public int hashCode() {
return playerName().hashCode();
}

public void test() {

MNKCell[] candidates;
TranspositionSearchMoveStrategy player = (TranspositionSearchMoveStrategy) moveStrategy;
int M = 10, N=10, K=5;
player.init(M, N, K, true, 15);

MNKCell[] cells = new MNKCell[]{
new MNKCell(M/2, N/2),
new MNKCell(0, M/2),
new MNKCell(M/2, M/2 +2),
new MNKCell(0, M/2 +1),
new MNKCell(M/2, M/2 +1),
};

for(int directionType : Utils.DIRECTIONS) {
Debug.println(Utils.toString(player.threatDetectionLogic.blocksOnDirection[directionType]));
}
for( MNKCell cell : cells ) {
//candidates = player.getCellCandidates(null);
// Debug.println(Arrays.toString(candidates));
player.mark(cell);

for(int directionType : Utils.DIRECTIONS) {
Debug.println(Utils.toString(player.threatDetectionLogic.blocksOnDirection[directionType]));
}

Debug.println(player.boardToString());
}

for( MNKCell cell : cells ) {
// candidates = player.getCellCandidates(null);
// Debug.println(Arrays.toString(candidates));
player.unMark();
Debug.println(player.boardToString());
}
}
}

0 comments on commit 29611e6

Please sign in to comment.