Skip to content

Commit 4123342

Browse files
refactor(algorithms, graphs): equality check
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 303bcb7 commit 4123342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/graphs/cat_and_mouse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def parents(m, c, t):
4444
# for every parent of this node i, j, t :
4545
for i2, j2, t2 in parents(i, j, t):
4646
# if this parent is not colored :
47-
if color[i2, j2, t2] is draw:
47+
if color[i2, j2, t2] == draw:
4848
# if the parent can make a winning move (ie. mouse to MOUSE), do so
4949
if t2 == c: # winning move
5050
color[i2, j2, t2] = c

0 commit comments

Comments
 (0)