Add basic rendering and cursor

This commit is contained in:
Marvin Rohrbach
2018-05-25 10:47:19 +02:00
parent d11258d3ed
commit c82c40a577
2 changed files with 61 additions and 29 deletions

View File

@@ -18,7 +18,17 @@ namespace CoopSweeper.GameTypes
public char ToChar()
{
throw new NotImplementedException();
switch(State)
{
case FieldState.FLAG: return 'F';
case FieldState.NONE: return '◌';
case FieldState.QUESTIONMARK: return '?';
case FieldState.REVEALED:
if(ContainsBomb)
return '☼';
return ' ';
}
return 'E';
}
}
}