コード例 #1
0
ファイル: OthelloAI_AB.cs プロジェクト: HE-Arc/ArcOthelloAB
 /// <summary>
 /// Provide the instance of OthelloAI_AB
 /// </summary>
 /// <returns>single instance of the class</returns>
 public static OthelloAI_AB GetInstance()
 {
     if (instance == null)
     {
         instance = new OthelloAI_AB();
     }
     return(instance);
 }
コード例 #2
0
ファイル: AIBoard.cs プロジェクト: HE-Arc/ArcOthelloAB
 /// <summary>
 /// Constructor of AIBoard
 /// </summary>
 public AIBoard()
 {
     board     = new int[TOTAL_COLLUMN, TOTAL_ROW];
     othelloAI = OthelloAI_AB.GetInstance();
     FillBoard();
 }