This has been shamelessly borrowed from Chris Luce, as he showed them in one of my tutorials last week.
This example shows a Tic Tac Toe checker, to see if there is a win in a board, or if it’s a cats game.
This example uses a 2 dimensional list, which you may find helpful to understand for your assignment.