KillerTable { final public void addKiller(int ply, Move m) { if (ply >= ktList.length) return; int move = (short)(m.from + (m.to << 6) + (m.promoteTo << 12)); KTEntry ent = ktList[ply]; if (move != ent.move0) { ent.move1 = ent.move0; ent.move0 = move; } } KillerTable(); final void addKiller(int ply, Move m); final int getKillerScore(int ply, Move m);  }
@Test public void testAddKiller() { System.out.println("addKiller"); KillerTable kt = new KillerTable(); Move m = new Move(TextIO.getSquare("b1"), TextIO.getSquare("b5"), Piece.EMPTY); kt.addKiller(3, m); kt.addKiller(7, m); kt.addKiller(3, m); kt.addKiller(3, m); }