diff --git a/.gitignore b/.gitignore index 261de36..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +0,0 @@ - -tester.py diff --git a/tester.py b/tester.py new file mode 100644 index 0000000..6285f1c --- /dev/null +++ b/tester.py @@ -0,0 +1,27 @@ +from GameLogic import * +from unittest import * + +gmap = GameMap(10, 10) +player1 = Player("first") +player2 = Player("second") +playerList = [player1, player2] + +gmap.add_mark(4, 4, player1) +gmap.add_mark(4, 5, player1) +gmap.add_mark(4, 6, player1) +gmap.add_mark(10, 10, player2) + +gmap = gameMap(5, 5) +print(gmap) +print(player1) +print(player2) + +glogic = GameLogic(GameMap, playerList) +print(glogic.check_who_win()) +# AAAAAAAAAAAA I AM GOING INSANE OVER THIS BULLSHIELD + +# Outdated this message is, I just work with tuple[0] and tuple[1]. +# ---- +# Anyway, a reminder when you'll get to the web - figure out how to manipulate +# tuples (or replace them altogether) so they'll behave like math matrices - +# as in, (4, 4) * 2 -> (8, 8), and as in, (4, 4) + (-2, 3) -> (2, 7) \ No newline at end of file