public Output(AdvanceGameInfo agi) { this.agi = agi; int listSize = agi.GetAgiStoneList().GetListSize(); stoneReverse = new string[listSize]; stoneRotate = new string[listSize]; stoneX = new int[listSize]; stoneY = new int[listSize]; for(int i=0; i < listSize; i++) { stoneReverse[i] = ""; stoneRotate[i] = ""; stoneX[i] = 0; stoneY[i] = 0; } }
public Search(AdvanceGameInfo agi, COMMON_MAP map) { this.agi = agi; this.commonMap = map; rand = new Xorshift(); storeDataDic = new Dictionary<int, StoreData>(); searchQueId = new ConcurrentQueue<int>(); nextQueId = new ConcurrentQueue<int>(); answerId = new Dictionary<int, StoreData>(); saveStoreDataDic = new Dictionary<int, StoreData>(); problemEmptySize = agi.GetAgiFields().GetEmptySize(); /* 問題のEMPTYサイズ */ depthSize = 0; searchTimes = 0; AnnealingRate = new int[11] { ANNEALING_RATE_0, ANNEALING_RATE_10, ANNEALING_RATE_20, ANNEALING_RATE_30, ANNEALING_RATE_40, ANNEALING_RATE_50, ANNEALING_RATE_60, ANNEALING_RATE_70, ANNEALING_RATE_80, ANNEALING_RATE_90, ANNEALING_RATE_100 }; setConstData(map); this.fileName = map.FILENAME; smallOrderList = new int[agi.GetAgiStoneList().GetListSize()]; RetrySearch = new Queue<List<StoreData>>(); }