Ejemplo n.º 1
0
from helpers import *
from play_wrapper import PlayWrapper
from board_wrapper import BoardWrapper
from abc import abstractmethod
import copy

PLAY_WRAP = PlayWrapper()
BOARD_WRAP = BoardWrapper()


class Player:

    name = "no name"
    color = EMPTY

    def __init__(self):
        name = "no name"
        color = EMPTY

    def set_name(self, name):
        self.name = name

    def get_name(self):
        return self.name

    def set_color(self, color):
        self.color = color

    def get_color(self):
        return self.color
Ejemplo n.º 2
0
import unittest
from helpers import *
from board_wrapper import BoardWrapper
from player_wrapper import Player_Wrapper
from tournament_admin import *
from play import *
from referee import *

#########################################
##CHANGE BOARD SIZE TO 3 BEFORE RUNNING##
#########################################

b = BoardWrapper()
board = [
	[BLACK, WHITE, BLACK],
	[BLACK, WHITE, BLACK],
	[BLACK, WHITE, EMPTY]
]

boards = [
	board, board, board
]

r = "rachel"
s = "sarah"

print(EMPTY_BOARD)


class Test_Player(unittest.TestCase):
	def test_init(self):