# Copyright (C) 2016 Goban authors
#
# This software may be modified and distributed under the terms
# of the MIT license.  See the LICENSE file for details.

class ColoredStone:
    def __init__(self, color):
        if color < 0:
            raise Exception("invalid stone color")
        self.__color = color

    def get_color(self):
        return self.__color

    def set_color(self, color):
        if color < 0:
            raise Exception("invalid stone color")
        self.__color = color
