Exemplo n.º 1
0
    def __init__(self):
        """Initializes a Piece with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._captured = False
        self._file = ""
        self._has_moved = False
        self._owner = None
        self._rank = 0
        self._type = ""
Exemplo n.º 2
0
    def __init__(self):
        """Initializes a Piece with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._captured = False
        self._file = ""
        self._has_moved = False
        self._owner = None
        self._rank = 0
        self._type = ""
Exemplo n.º 3
0
    def __init__(self):
        """Initializes a Move with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._captured = None
        self._from_file = ""
        self._from_rank = 0
        self._piece = None
        self._promotion = ""
        self._san = ""
        self._to_file = ""
        self._to_rank = 0
Exemplo n.º 4
0
    def __init__(self):
        """Initializes a Move with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._captured = None
        self._from_file = ""
        self._from_rank = 0
        self._piece = None
        self._promotion = ""
        self._san = ""
        self._to_file = ""
        self._to_rank = 0
Exemplo n.º 5
0
    def __init__(self):
        """Initializes a Player with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._client_type = ""
        self._color = ""
        self._lost = False
        self._name = "Anonymous"
        self._opponent = None
        self._reason_lost = ""
        self._reason_won = ""
        self._time_remaining = 0
        self._won = False
Exemplo n.º 6
0
    def __init__(self):
        """Initializes a Player with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._client_type = ""
        self._color = ""
        self._in_check = False
        self._lost = False
        self._made_move = False
        self._name = "Anonymous"
        self._other_player = None
        self._pieces = []
        self._rank_direction = 0
        self._reason_lost = ""
        self._reason_won = ""
        self._time_remaining = 0
        self._won = False