about | help | code help+videos | done | prefs |
winner
An array, called arr, with 9 elements in it is given.
It represent the current board state of a tic tac toe game:
arr[0] is the upper left
arr[4] is the middle center
arr[8] is the lower right
winner([1, 1, 1, 0, 0, 0, 0, 0, 0]) → 1 winner([1, 0, 0, 1, 0, 0, 1, 0, 0]) → 1 winner([1, 1, 0, 0, 0, 0, 0, 0, 0]) → 0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy