From aa0f6369a46c0b1185411d7907669d57a4aad5a0 Mon Sep 17 00:00:00 2001 From: Roman Pushkin Date: Sat, 13 Apr 2019 20:16:29 -0700 Subject: [PATCH] Save --- manuscript/046.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manuscript/046.txt b/manuscript/046.txt index 19eeec6..638eb8d 100644 --- a/manuscript/046.txt +++ b/manuscript/046.txt @@ -314,8 +314,9 @@ But if you're looking to define array of empty arrays, use `[]` instead of "`... arr = [[], [], []] ``` -Tic-tac-toe game is good example of array of arrays. For the following board let's assume that "`O`" is represented by "`0`", and "`X`" by "`1`", empty cell is `nil`: +Tic-tac-toe game is good example of array of arrays. For the following board let's assume that "O" is represented by "`0`", and "X" by "`1`", empty cell is `nil`: +{width=25%} ![Tic Tac Toe](images/046-tic-tac-toe.png) This is how this array would look like in Ruby: