Skip to content

Commit

Permalink
Fix matching typo for Tic-Tac-Toe winner example
Browse files Browse the repository at this point in the history
  • Loading branch information
tameribrahim committed May 10, 2024
1 parent f3574ac commit 91aec27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/tic-tac-toe.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ defmodule TicTacToe do
## Examples
iex> board = [
...> [nil, nil, nil],
...> [nil, nil, nil],
...> [nil, nil, nil],
...> [nil, nil, nil]
...> ]
Expand Down Expand Up @@ -263,7 +263,7 @@ defmodule TicTacToe do
def winner?(board, x) do
match?([[^x, ^x, ^x], [_, _, _], [_, _, _]], board) or
match?([[_, _, _], [^x, ^x, ^x], [_, _, _]], board) or
match?([[_, _, _], [_, _, _], [_, _, _]], board) or
match?([[_, _, _], [_, _, _], [^x, ^x, ^x]], board) or
match?([[^x, _, _], [^x, _, _], [^x, _, _]], board) or
match?([[_, ^x, _], [_, ^x, _], [_, ^x, _]], board) or
match?([[_, _, ^x], [_, _, ^x], [_, _, ^x]], board) or
Expand Down

0 comments on commit 91aec27

Please sign in to comment.