# Path: MTG/cardtype.py
# class SuperType(Enum):
# class CardType(Enum):
# class LandType(Enum):
#     BASIC = 0
#     LEGENDARY = 1
#     SNOW = 2
#     WORLD = 3
#     ARTIFACT = 0
#     CREATURE = 1
#     ENCHANTMENT = 2
#     INSTANT = 3
#     LAND = 4
#     PLANESWALKER = 5
#     SORCERY = 6
#     TRIBAL = 7
#     PLAINS = 0
#     ISLAND = 1
#     SWAMP = 2
#     MOUNTAIN = 3
#     FOREST = 4
# 
# Path: MTG/static_abilities.py
# class StaticAbilities(Enum):
# 
# Path: MTG/utils.py
# def get_card_from_user_input(player, string):
# def choose_targets(source):
# def parse_targets(criterias):
# def parse_ability_costs(cost):


import pdb
import time
import math
from collections import defaultdict, namedtuple
from sortedcontainers import SortedListWithKey
from MTG import cardtype
from MTG import static_abilities
from MTG import utils

    def has_color(self, color):
        return color in self.characteristics.color

    def is_color(self, color):
        """ color is a list"""
        return color == self.characteristics.color

    @property
    def is_monocolored(self):
        return len(self.characteristics.color) == 1

    @property
    def is_multicolored(self):
        return len(self.characteristics.color) > 1

    @property
    def is_colorless(self):
        return len(self.characteristics.color) == 0

    def has_subtype(self, subtype):
        return subtype in self.characteristics.subtype

    def exile(self):
        self.change_zone(self.owner.exile)


    ### Targeting ###

    def targets(self):

# Path: MTG/cardtype.py
# class SuperType(Enum):
# class CardType(Enum):
# class LandType(Enum):
#     BASIC = 0
#     LEGENDARY = 1
#     SNOW = 2
#     WORLD = 3
#     ARTIFACT = 0
#     CREATURE = 1
#     ENCHANTMENT = 2
#     INSTANT = 3
#     LAND = 4
#     PLANESWALKER = 5
#     SORCERY = 6
#     TRIBAL = 7
#     PLAINS = 0
#     ISLAND = 1
#     SWAMP = 2
#     MOUNTAIN = 3
#     FOREST = 4
# 
# Path: MTG/static_abilities.py
# class StaticAbilities(Enum):
# 
# Path: MTG/utils.py
# def get_card_from_user_input(player, string):
# def choose_targets(source):
# def parse_targets(criterias):
# def parse_ability_costs(cost):


# Path: MTG/gameobject.py
import pdb
import time
import math
from collections import defaultdict, namedtuple
from sortedcontainers import SortedListWithKey
from MTG import cardtype
from MTG import static_abilities
from MTG import utils


    def has_color(self, color):
        return color in self.characteristics.color

    def is_color(self, color):
        """ color is a list"""
        return color == self.characteristics.color

    @property
    def is_monocolored(self):
        return len(self.characteristics.color) == 1

    @property
    def is_multicolored(self):
        return len(self.characteristics.color) > 1

    @property
    def is_colorless(self):
        return len(self.characteristics.color) == 0

    def has_subtype(self, subtype):
        return subtype in self.characteristics.subtype

    def exile(self):
        self.change_zone(self.owner.exile)


    ### Targeting ###

    def targets(self):

        targets_chosen = utils.choose_targets(self)