Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor of AIBoard
 /// </summary>
 public AIBoard()
 {
     board     = new int[TOTAL_COLLUMN, TOTAL_ROW];
     othelloAI = OthelloAI_AB.GetInstance();
     FillBoard();
 }