public void test_generate_sequence_pathsize_1() { Board b = new Board(); IMoveStrategy strategy = new KnightMoveStrategy(b); SequenceGenerator generator = new SequenceGenerator(b, strategy, 10); int count = generator.CountAllSequences(); Assert.IsTrue(count > 0); }
static void Main(string[] args) { Board b = new Board(); IMoveStrategy moveStrategy = new KnightMoveStrategy(b); SequenceGenerator generator = new SequenceGenerator(b, moveStrategy, 3); int numMoves = generator.CountAllSequences(); Console.WriteLine(numMoves.ToString()); //Console.ReadLine(); }