コード例 #1
0
        public unsafe void TestIqCash()
        {
            TikTacToe tikTacToe = TikTacToe.GetClear();
            RelatingIq <TikTacToe, int, int> iq = new RelatingIq <TikTacToe, int, int>(10, true, true);
            var result      = iq.Run(tikTacToe);
            var resultState = result.Item2;

            Show(resultState);
        }
コード例 #2
0
        public unsafe void TestIqDown()
        {
            TikTacToe tikTacToe = TikTacToe.GetClear();

            tikTacToe.Table[6]    = 1;
            tikTacToe.Table[8]    = 1;
            tikTacToe.Table[4]    = 2;
            tikTacToe.PlayerIndex = 2;
            RelatingIq <TikTacToe, int, int> iq = new RelatingIq <TikTacToe, int, int>(10, true);
            var result      = iq.Run(tikTacToe);
            var resultState = result.Item2;

            Show(resultState);
            Assert.AreEqual(7, result.Item1);
            Assert.AreEqual(2, resultState.Table[7]);
        }