Skip to content

Commit

Permalink
Merge pull request #1060 from tameribrahim/typos
Browse files Browse the repository at this point in the history
Fix matching typo for Tic-Tac-Toe winner? function example
  • Loading branch information
BrooklinJazz committed May 27, 2024
2 parents 0ee01f2 + 91aec27 commit a834a26
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 a834a26

Please sign in to comment.