Merge branch 'master' of https://gitlab.com/timwundenberg/minesweeper-coop
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user