exposing my test suite. for u. to see.

This commit is contained in:
otomo otonami 2022-08-07 09:33:07 +03:00
parent 8bc369c31c
commit d329c0f7ab
2 changed files with 27 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,2 +0,0 @@
tester.py

27
tester.py Normal file
View File

@ -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)