A Different Approach

Let’s learn how to use other data structures to make our board of tic-tac-toe.

Making the board using a list of strings

What if we make one small change by representing the board as a list of lists of strings? Here are the commands for accessing and inserting elements:

Executable

Get hands-on with 1200+ tech skills courses.