2012-08-08 18:37:09 +02:00
|
|
|
|
|
|
|
from __future__ import print_function
|
|
|
|
import unittest
|
|
|
|
from robotgame.logic.lasermirror import *
|
|
|
|
from robotgame.logic.direction import *
|
|
|
|
|
|
|
|
|
|
|
|
class LaserMirrorTest(unittest.TestCase):
|
|
|
|
def test_playfield_generation(self):
|
|
|
|
print()
|
2012-08-11 02:22:29 +02:00
|
|
|
playfield = generate_simple_playfield(16)
|
2012-08-08 18:37:09 +02:00
|
|
|
print_playfield(playfield, 12, 12)
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|