Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public ActionResponse PressCell(int gameID, int x, int y)
 {
     return(GameBll.Instance().PressCell(new ActionRequest {
         GameId = gameID, PositionX = x, PositionY = y
     }));
 }