module 7 01 WIP

This commit is contained in:
2026-02-28 14:45:21 +01:00
parent 4ca187647c
commit 2cb7f24a8e
4 changed files with 55 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
from ex0.Card import Card
from typing import Union
class ArtifactCard(Card):
@@ -10,7 +11,17 @@ class ArtifactCard(Card):
self.effect = effect
def play(self, game_state: dict) -> dict:
return super().play(game_state)
try:
res: dict[str, Union[int, str]] = {}
if game_state["mana"] < 2:
raise Exception("Not enough mana")
res["card_played"] = self.name
res["mana_used"] = 2
res["effect"] = self.effect
return res
except Exception as err:
print(err)
return {}
def activate_ability(self) -> dict:
pass