示例#1
0
 public AGame(string fileName)
 {
     _gameRecord     = SGFParser.GetGameRecord(fileName);
     boardHistory    = new SortedSet <string>();
     _LatestMove     = null;
     _size           = _gameRecord.Size;
     _currentStatus  = new BoardStatus(_size);
     _numMoves       = 0;
     _currentRecMove = 0;
     boardHistory.Add(_currentStatus.ToString());
 }
示例#2
0
 public AGame(Stream stream)
 {
     using (StreamReader reader = new StreamReader(stream))
     {
         string buffer = reader.ReadToEnd();
         _gameRecord = SGFParser.ParseGameRecord(buffer);
     }
     boardHistory    = new SortedSet <string>();
     _LatestMove     = null;
     _size           = _gameRecord.Size;
     _currentStatus  = new BoardStatus(_size);
     _numMoves       = 0;
     _currentRecMove = 0;
     boardHistory.Add(_currentStatus.ToString());
 }