Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

WHAT IS AUTOMATION TESTING?

Answered: 1 week ago

Question

What is Selenium? What are the advantages of Selenium?

Answered: 1 week ago

Question

Explain the various collection policies in receivables management.

Answered: 1 week ago

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago