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