Exemple #1
0
        private void turn_Click(object sender, EventArgs e)
        {
            if (!sInfo.IsTurn)
            {
                return;
            }

            string moves = Request.Form["movesMade"];
            Result r     = bInfo.MakeTurn(moves, _ruler);

            CheckEndBattle();
            if (r.Ok)
            {
                sInfo.AddTurn();
                SetTurnStuff();
                Redirect();
            }
            RaiseError(r);
        }