Skip to content

Commit be80f27

Browse files
committed
Update: TicTacToe2 solution
1 parent d9176b2 commit be80f27

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

kattis/TicTacToe2/tictactoe2.vn.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,10 @@
5151

5252
# Anything else is impossible
5353
else:
54-
print("no")
54+
print("no")
55+
56+
# wins[X] -> A, wins[O] -> B, grid.count(X)-grid.count(O)==i -> Ci
57+
58+
# yes = (A ∧ ¬B ∧ C1) ∨ (¬A ∧ B ∧ C0) ∨ (¬A ∧ ¬B ∧ (C0 ∧ C1))
59+
# Fun fact: We could try to simplify this.
60+
# We'll probably find a simpler equation for no.

0 commit comments

Comments
 (0)