Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Commit bb3f95c

Browse files
committed
Update
1 parent a7c0d2e commit bb3f95c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lessons/python/exercises/exercise-general-week-08-012--04.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def show():
3434

3535

3636
def check_4(row):
37-
if (np.sum(row) == 4):
37+
if (np.sum(row) == 4 and not np.any(row == 2)):
3838
print("@ is the winner")
3939
exit()
4040
if (np.sum(row) == 8):

0 commit comments

Comments
 (0)