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 }));
        }
 public NeuralPositionPlayer1(VanDerWaerdenGameRules rules)
     : base(rules)
 {
     this.Network = ConstructNetwork();
 }
 public RandomColorPlayer(VanDerWaerdenGameRules rules)
     : base(rules)
 {
 }
 public ColorPlayerBase(VanDerWaerdenGameRules rules)
     : base(rules)
 {
 }
Exemplo n.º 5
0
 public PlayerBase(VanDerWaerdenGameRules rules)
 {
     Rules = rules;
     Rules.PropertyChanged += OnGameRulesPropertiesChanged;
 }
 public NeuralColorPlayer(VanDerWaerdenGameRules rules)
     : base(rules)
 {
     this.Network = ConstructNetwork();
 }
 public PositionPlayerBase(VanDerWaerdenGameRules rules)
     : base(rules)
 {
 }
 public RandomPositionPlayer(VanDerWaerdenGameRules rules)
     : base(rules)
 {
 }