game # scored points scored points game # scored points scored points game # scored points scored points game # scored points scored points skipped for brevity game # scored points scored points game # scored points scored points game # scored points scored points game # scored points scored points wins games ( %) wins games ( %)ties for games ( %of games total depending on how fast your computer isthis run might have taken about couple minutes you can see that the results of all one hundred games still evens out to about fifty-fiftybecause both and are using the same algorithm to win comparing different ai algorithms let' add some new functions with new algorithms but first click on file save asand save this file as aisim py before the print('welcome to reversi!'lineadd these functions in the following source code listing aisim py if you get errors after typing this code incompare the code you typed to the book' code with the online diff tool at aisim py def getrandommove(boardtile) return random move return random choicegetvalidmoves(boardtile def isonside(xy) return = or = or = or == def getcornersidebestmove(boardtile) return corner moveor side moveor the best move possiblemoves getvalidmoves(boardtile randomize the order of the possible moves random shuffle(possiblemoves post questions to