I'm working on making a tic tac toe game and I have more complex code than my input statement can handle.
This is for a project in my class and I've done some research. nothing to me makes sense there so I came here. I tried to make it less complex but nothing can get around my head to do so. The bellow code is just a small portion of the results.
while while_statement == 3:
X_variables = input('where do you place your X player1. {use (X , Y)}. ')
if X_variables == '(1 , 1)':
game = [[1 , 0 , 0],
[0 , 0 , 0],
[0 , 0 , 0]]
print('|' , 'X' , '|' , ' ' , '|' , ' ' , '|')
print('-------------')
print('|' , ' ' , '|' , ' ' , '|' , ' ' , '|')
print('-------------')
print('|' , ' ' , '|' , ' ' , '|' , ' ' , '|')
elif X_variables == '(1 , 2)':
game = [[0 , 0 , 0],
[1 , 0 , 0],
[0 , 0 , 0]]
print('|' , ' ' , '|' , ' ' , '|' , ' ' , '|')
print('-------------')
print('|' , 'X' , '|' , ' ' , '|' , ' ' , '|')
print('-------------')
print('|' , ' ' , '|' , ' ' , '|' , ' ' , '|')
I expect this code will continue with the game but the actual results will be an error in the X_variables input statement.