IEnumerator delayXiaqi(int idx) { int z = WzqAI.GetIns().t(Wuziqi.indexOf(idx)); yield return(new WaitForSeconds(1.5f)); PrintQizi(z); }
private void Start() { wzq = new WZQGame(); wzq.gStateChangeDe = onGameStateChange; wzq.gResultDel = onGameResult; wzq.gameStart(Wuziqi.qiType.white); myturn = Wuziqi.qiType.white; WzqAI.GetIns().SetGame(wzq); Debug.Log("3215=" + WzqAI.caculateQ(new int[] { 3, 2, 1, 5 })); }