public void BannedSprite2Restriction_WithAnyConnection_Best4() { IRestriction restriction = new Scripts.Workers.Score_and_Limits.BannedSprite(2); var pieces = new string[] { "1222", "11a2", "2222", "----" }; BuildGrid(pieces); var move = BestMoverChecker.GetBestMove(restriction).Move; Assert.AreEqual(4, move.Count); Assert.IsFalse(restriction.IsRestrictionViolated(move.ToArray())); }
public void BannedSprite1Restriction_Best4() { IRestriction restriction = new Scripts.Workers.Score_and_Limits.BannedSprite(1); var pieces = new string[] { "1-21", "112-", "-121", "--1-" }; BuildGrid(pieces); var move = BestMoverChecker.GetBestMove(restriction).Move; Assert.AreEqual(3, move.Count); Assert.IsFalse(restriction.IsRestrictionViolated(move.ToArray())); }