

def test_suicide_win(self):
    test = ' ######\n                #0 .1#\n                #.   #\n                ###### '
    universe = CTFUniverse.create(test, 2)
    universe.move_bot(0, east)
    universe.move_bot(1, west)
    game_state = universe.move_bot(0, east)
    target = {
        'bot_moved': [{
            'bot_id': 0,
            'old_pos': (2, 1),
            'new_pos': (3, 1),
        }, {
            'bot_id': 0,
            'old_pos': (3, 1),
            'new_pos': (1, 1),
        }],
        'food_eaten': [{
            'bot_id': 0,
            'food_pos': (3, 1),
        }],
        'bot_destroyed': [{
            'bot_id': 0,
            'destroyed_by': 1,
        }],
    }
    self.assertEqual(game_state, target)

dataset/ETHPy150Open ASPP/pelita/test/test_datamodel.py TestCTFUniverseRules.test_suicide_win/original