Minesweeper game/D: Difference between revisions
Content added Content deleted
(→Minesweeper game in D: mainsweeper module) |
No edit summary |
||
Line 1: | Line 1: | ||
⚫ | |||
Tango based implementation |
Tango based implementation |
||
== Main module == |
|||
<lang D>import tango.io.Stdout; |
<lang D>import tango.io.Stdout; |
||
import tango.io.Console; |
import tango.io.Console; |
||
Line 88: | Line 86: | ||
</lang> |
</lang> |
||
== Example plays == |
|||
⚫ | |||
⚫ | |||
Welcome! |
|||
Gimme height width: |
|||
4 6 |
|||
00 123456 |
|||
1 [ ...... ] |
|||
2 [ ...... ] |
|||
3 [ ...... ] |
|||
4 [ ...... ] |
|||
1 1 |
|||
00 123456 |
|||
1 [ ___1.. ] |
|||
2 [ ___1.. ] |
|||
3 [ _112.. ] |
|||
4 [ _1.... ] |
|||
1 5 |
|||
BIG BADA BOOM |
|||
00 123456 |
|||
1 [ ___1*. ] |
|||
2 [ ___1.. ] |
|||
3 [ _112.. ] |
|||
4 [ _1.... ] |
|||
⚫ | |||
<lang D>module MineSweeper; |
<lang D>module MineSweeper; |
||