2022-08-07 06:33:07 +00:00
|
|
|
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
|
|
|
|
|
2022-08-15 04:25:39 +00:00
|
|
|
# Outdated this message is, I will just work with tuple[0] and tuple[1].
|
2022-08-07 06:33:07 +00:00
|
|
|
# ----
|
|
|
|
# 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)
|