if boolean_Select: #display signboard to change pawn's direction if a pawn is select game_board.draw_signboard(fenetre, index_pawn) box_X, box_Y, index_box = Box.find_index_box( game_board, posX, posY) pygame.display.update() if next_Round == True: #end turn, shot a laser autimaticaly if index_player == 1: laser_shot = Laser( game_board.list_pawn[0].direction_pawn ) #first direction of laser is the same as sphinx of player pygame.time.delay(500) if laser_shot.direction_laser == 'east': laser_shot.automatic_shot(game_board, fenetre, 0, 1) elif laser_shot.direction_laser == 'south': laser_shot.automatic_shot(game_board, fenetre, 0, 10) #shot a laser else: laser_shot = Laser( game_board.list_pawn[len(game_board.list_pawn) - 1].direction_pawn) if laser_shot.direction_laser == 'north': laser_shot.automatic_shot(game_board, fenetre, len(game_board.list_pawn) - 1, 69) elif laser_shot.direction_laser == 'west': laser_shot.automatic_shot(game_board, fenetre, len(game_board.list_pawn) - 1, 78) #shot a laser