示例#1
0
文件: Kata.cs 项目: balusk13/MKKA
        public Kata(string id)
        {
            Name  = id;
            moves = new List <KataMove>();
            DBAccessor db   = new DBAccessor();
            int        size = db.GetKataSize(id);

            for (int i = 1; i <= size; ++i)
            {
                moves.Add(db.GetKataMove(Name, i));
            }
        }
示例#2
0
 public static string GetDatabasePath()
 {
     return(DBAccessor.GetDatabasePath());
 }
示例#3
0
 private MKKAEngine()
 {
     db  = new DBAccessor();
     gen = new QuestionGenerator();
     LoadDB();
 }