示例#1
0
        public void DoesntErrorOnRoundOne()
        {
            var state = new Gamestate();

            state.SetRounds(new Round[] {});
            var bot = new ExampleBot.ExampleBot();

            bot.MakeMove(state);
        }
示例#2
0
        public void FuckingTest()
        {
            var round1 = new Round();

            round1.SetP1(Move.R);
            round1.SetP2(Move.P);
            var round2 = new Round();

            round2.SetP1(Move.R);
            round2.SetP2(Move.P);
            var state = new Gamestate();

            state.SetRounds(new Round[] { round1, round2 });

            var result = new ExampleBot.ExampleBot().MakeMove(state);

            Assert.AreEqual(Move.S, result);
        }
示例#3
0
        public void RoundTwoTest()
        {
            // round 1
            var state = new Gamestate();

            state.SetRounds(new Round[] { });
            var bot = new ExampleBot.ExampleBot();

            bot.MakeMove(state);

            // round 2
            var round1 = new Round();

            round1.SetP1(Move.D);
            round1.SetP2(Move.D);
            state.SetRounds(new[]
            {
                round1
            });

            bot.MakeMove(state);
        }