Exemplo n.º 1
0
 public Board(String boardString)
 {
     using (var ms = new MemoryStream(Encoding.Unicode.GetBytes(boardString)))
     {
         DataContractJsonSerializer deserializer = new DataContractJsonSerializer(typeof(BoardJson));
         ParsedBoard = (BoardJson)deserializer.ReadObject(ms);
         ParsedBoard.field.Replace("\n", "");
         LengthXY = new LengthToXY(Size);
     }
 }
Exemplo n.º 2
0
 public Board(String boardString)
 {
     BoardString = boardString.Replace("\n", "");
     LengthXY    = new LengthToXY(Size);
 }