27 lines
764 B
Python
27 lines
764 B
Python
|
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)
|