Skip to content

Commit 542a760

Browse files
committed
slightly faster, but still slow
1 parent 1adb377 commit 542a760

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/playout/no_eyes.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,13 @@ impl Playout for NoSelfAtariPlayout {
4848
&& (
4949
board.liberty_count(m.coord()) > 1 ||
5050
{
51-
let liberties = board.new_chain_liberties(*m);
5251
let removed_enemies = board.removes_enemy_neighbouring_stones(*m);
52+
53+
removed_enemies > 1 ||
54+
{
55+
let liberties = board.new_chain_liberties(*m);
5356
liberties + removed_enemies > 1
57+
}
5458
}
5559
|| board.new_chain_length(*m) < 7
5660
)

0 commit comments

Comments
 (0)