コード例 #1
0
        public void VanDerWaerdenRulesTests_EndGame()
        {
            var rules = new VanDerWaerdenGameRules();

            Assert.IsFalse(rules.IsFinalStateOfGame(new int[] { }));
            Assert.IsTrue(rules.IsFinalStateOfGame(new int[]{ 1, 1, 2, 2, 1, 1, 1 }));
            Assert.IsFalse(rules.IsFinalStateOfGame(new int[] { 1, 1, 2, 2, 1, 1 }));
        }
コード例 #2
0
 public NeuralPositionPlayer1(VanDerWaerdenGameRules rules)
     : base(rules)
 {
     this.Network = ConstructNetwork();
 }
コード例 #3
0
 public RandomColorPlayer(VanDerWaerdenGameRules rules)
     : base(rules)
 {
 }
コード例 #4
0
 public ColorPlayerBase(VanDerWaerdenGameRules rules)
     : base(rules)
 {
 }
コード例 #5
0
 public PlayerBase(VanDerWaerdenGameRules rules)
 {
     Rules = rules;
     Rules.PropertyChanged += OnGameRulesPropertiesChanged;
 }
コード例 #6
0
 public NeuralColorPlayer(VanDerWaerdenGameRules rules)
     : base(rules)
 {
     this.Network = ConstructNetwork();
 }
コード例 #7
0
 public PositionPlayerBase(VanDerWaerdenGameRules rules)
     : base(rules)
 {
 }
コード例 #8
0
 public RandomPositionPlayer(VanDerWaerdenGameRules rules)
     : base(rules)
 {
 }