AI_PRO/Field.py
2021-03-29 02:53:27 +02:00

15 lines
400 B
Python

class Field:
def __init__(self, __horizontal, __vertical, __state):
self.horizontal = __horizontal
self.vertical = __vertical
self.__state = __state
@property
def state(self):
return self.__state
@state.setter
def state(self, state):
if state == 0 or state == 1 or state == 2 or state == 3 or state == 4:
self.__state = state