public RootForm(RootController controller) { InitializeComponent(); var players = controller.CreateDefaultPlayers(); var gameID = GameBll.Instance().CreateGame(players); var game = GameBll.Instance().FindById(gameID); ArenaView arenaView = new ArenaView(controller, game, players); this.Controls.Add(arenaView); }
public ActionResponse PressCell(int gameID, int x, int y) { return(GameBll.Instance().PressCell(new ActionRequest { GameId = gameID, PositionX = x, PositionY = y })); }