From 91aec27e003e13ab7454937ccfb323c2e4902f45 Mon Sep 17 00:00:00 2001 From: Tamer Ibrahim Date: Fri, 10 May 2024 16:36:03 -0400 Subject: [PATCH] Fix matching typo for Tic-Tac-Toe winner example --- exercises/tic-tac-toe.livemd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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