static void Main(string[] args) { var options = CCOptions.Default(); options.threads = 2; options.max_nodes = 100000; var weights = CCWeights.Default(); NextGenerator g = new NextGenerator(); CCPieceBag bag = CCPieceBag.Full(); bool[] field = new bool[400]; using (var cc = new Bot(options, weights, field, bag, CCPiece.CC_None, false, 0)) { for (int i = 0; i < 10; i++) { cc.AddNextPiece(g.Next()); } Thread.Sleep(100); for (int i = 0; i < 20; i++) { PrintMovePlan(cc.GetNextMoveAndPlans(0)); cc.AddNextPiece(g.Next()); Thread.Sleep(100); } cc.Reset(field, false, 0); PrintMovePlan(cc.GetNextMoveAndPlans(0)); } }