This commit is contained in:
Tim Wundenberg
2018-05-25 10:58:13 +02:00
2 changed files with 61 additions and 29 deletions

View File

@@ -20,7 +20,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';
}
}
}