return [xy def getcomputermove(boardcomputertile) given board and the computer' tiledetermine where to move and return that move as [xylist possiblemoves getvalidmoves(boardcomputertile randomize the order of the possible moves random shuffle(possiblemoves always go for corner if available for xy in possiblemoves if isoncorner(xy) return [xy go through all the possible moves and remember the best scoring move bestscore - for xy in possiblemoves dupeboard getboardcopy(board makemove(dupeboardcomputertilexy score getscoreofboard(dupeboard)[computertile if score bestscore bestmove [xy bestscore score return bestmove def showpoints(playertilecomputertile) prints out the current score scores getscoreofboard(mainboard print('you have % points the computer has % points (scores[playertile]scores[computertile]) print('welcome to reversi!' while true reset the board and game mainboard getnewboard( resetboard(mainboard playertilecomputertile enterplayertile( showhints false turn whogoesfirst( print('the turn will go first '