Example #1
0
        private void BeatLastSelection(string Choice, Guid MatchId, int RoundNumber)
        {
            DataLayer.Game.TacticalComputerMatch Match = new DataLayer.Game.TacticalComputerMatch();
            string s = Match.GetLastMoveHuman(MatchId, RoundNumber);

            switch (s)
            {
                case "Paper":
                    this.Choice = SetRandomOptionBeatPaper();
                    break;
                case "Rock":
                    this.Choice = SetRandomOptionBeatRock();
                    break;
                case "Scissors":
                    this.Choice = SetRandomOptionBeatScissors();
                    break;
            }
        }