import random import robots def bot(whoami, players, board): my_robots = players[whoami]['robots'] action = random.choice('URP') return action * len(my_robots) if __name__ == '__main__': random.seed(64) map_ = robots.empty_map(10, 10, 4) game = robots.Game(map_) game.add_bot(bot, 'Alice') game.add_bot(bot, 'Bob') game.add_bot(bot, 'Charlie') viewer = robots.CursesViewer(game) viewer.run()