Relative Content

Tag Archive for python-3.xdictionaryscopetic-tac-toe

tic tac toe game being buggy

import os,random theBoard = {‘top-L’: ‘ ‘, ‘top-M’: ‘ ‘, ‘top-R’: ‘ ‘, ‘mid-L’: ‘ ‘, ‘mid-M’: ‘ ‘, ‘mid-R’: ‘ ‘, ‘low-L’: ‘ ‘, ‘low-M’: ‘ ‘, ‘low-R’: ‘ ‘} def printBoard(board): print(f””” {board[‘top-L’]} | {board[‘top-M’]} | {board[‘top-R’]} ———– {board[‘mid-L’]} | {board[‘mid-M’]} | {board[‘mid-R’]} ———– {board[‘low-L’]} | {board[‘low-M’]} | {board[‘low-R’]} “””) def computerMove(): while […]