/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public bool TryPlay(Game1 game, GameState gameState) { if (playing != null) { if (playTargetCard != null) { game.PlayTurn(playing, gameState.wizard, TriggerItem.create(playTargetCard)); return true; } else { game.PlayTurn(playing, gameState.wizard, gameState.getItemAt(playPosition)); return true; } } return false; }