Minesweeper game/D: Difference between revisions

Updated minesweeper_main1 D module
(Updated and improved D-Phobos version)
(Updated minesweeper_main1 D module)
 
(2 intermediate revisions by the same user not shown)
Line 11:
while (true) {
write("Give me height width (2 2 or more): ");
immutableconst parts = readln().split();
if (parts.length != 2) {
writeln("Required: number number");
Line 87:
}
 
autoGameBoard.Cell cell = board[row, column];
 
if (action == Action.flag) {
Line 253:
}
 
override string toString() const pure nothrow {
if (isUncovered) {
if (isMined)
Line 271:
uint numAdjacentMines;
}
}
}</lang>
 
void main(){}</lang>
 
=== Example plays ===