Solution Review: Task V and VI
Let’s look at the solution to the problem in the previous lesson.
We'll cover the following...
We'll cover the following...
Task V: Implement the winning conditions
The task was to code the winning conditions to check for the winner.
-
Lines 4–8: We use a
forloop to check if there are any three consecutivexoroin any of our rows. We keep the column values (the second bracket) constant and iterate over the rows. -
Lines 10–14: We use a ...