()
| 11 | assert loc.planet == bc.Planet.Mars |
| 12 | |
| 13 | def test_direction(): |
| 14 | assert bc.Direction.North.opposite() == bc.Direction.South |
| 15 | loc = bc.MapLocation(bc.Planet.Earth,1,2) |
| 16 | locne = loc.add(bc.Direction.Northeast) |
| 17 | assert locne.x == 2, locne.x |
| 18 | assert locne.y == 3, locne.y |
| 19 | |
| 20 | def test_controller(): |
| 21 | c = bc.GameController.new_manager(bc.GameMap.test_map()) |