Question: Write a Tic -tac- toe program using only lists, and indexing. No, if or else statements. must be in python and contain 9 moves for

Write a Tic -tac- toe program using only lists, and indexing. No, if or else statements. must be in python and contain 9 moves for 2 players

my code so far:

board_list = [1, 2, 3, 4, 5, 6, 7, 8, 9] row1 = [1, 2, 3] row2 = [4, 5, 6] row3 = [7, 8, 9] board_list = [row1, row2, row3]

#print board #1. Get input string nine moves, eg: 1 3 5 4 2 7 9 8 6 move_list = (input('Enter the move string:')).split(' ')

I'm trying to write this code only using lists and indexing very very simple version with no forloops, if, else, or, and.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!