diff --git a/exercises/tic-tac-toe.livemd b/exercises/tic-tac-toe.livemd index 537589ca..59943732 100644 --- a/exercises/tic-tac-toe.livemd +++ b/exercises/tic-tac-toe.livemd @@ -172,7 +172,7 @@ defmodule TicTacToe do ## Examples iex> board = [ - ...> [nil, nil, nil], + ...> [nil, nil, nil], ...> [nil, nil, nil], ...> [nil, nil, nil] ...> ] @@ -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