playerOne=[]playerTwo=[]board=[['_','_','_','_'],['_','_','_','_'],['_','_','_','_'],['_','_','_','_']]one=Falsetwo=Falsec=-5whilenotoneandnottwoandc<(n**2/2)-1:move=askMove()board[move[0]][move[1]]='X'playerOne.append((move[0],move[1]))forlineinboard:print(line)iflen(playerOne)>=4:computeDistances(playerOne)one=checkSquare(playerOne)ifone:print("Player One loses")breakprint('========')seed=(randint(0,n-1),randint(0,n-1))whileboard[seed[0]][seed[1]]!='_':seed=(randint(0,n-1),randint(0,n-1))board[seed[0]][seed[1]]='O'playerTwo.append((seed[0],seed[1]))forlineinboard:print(line)iflen(playerTwo)>=4:computeDistances(playerTwo)two=checkSquare(playerOne)iftwo:print("Player Two wins")breakc+=1ifnotoneandnottwo:print("Draw")