TDWTF Plays Minesweeper
-
@error_bot reveal a6
reveal b6
reveal b5
flag c4
reveal b4
reveal c3
flag c2
reveal i9
flag j9
reveal k9
-
Ā
Ā
-
@error_bot flag j12
reveal k12
reveal j11
flag j10
-
Ā
Ā
-
I kind of like submitting in batches like that.
-
I think I could make this thing look really spiffy, except because of NodeBB it needs to be less than 32kb after base64 encoding.
-
I can upload the SVG with an xml extension and it won't get mangled by NodeBB, but then it doesn't use the right mime type.
-
@error_bot unflag j10
-
Ā
Ā
-
@error_bot auto j8
-
You lose!
-
New game.
-
@error_bot auto f6
-
-
@error_bot auto f6
-
Ā
Ā
-
@error_bot flag h6
flag h4
auto h5
-
Ā
Ā
-
@error_bot auto h6
-
-
@error_bot auto i5
-
You lose!
-
New game.
-
@error_bot auto b2
-
Ā
Ā
-
@error_bot auto h1
-
-
@error_bot flag g1
-
Ā
Ā
-
@error_bot auto h1
-
Ā
Ā
-
@error_bot flag d4
flag d5
-
Ā
Ā
-
@error_bot auto c4
-
Ā
Ā
-
@error_bot auto e4
-
Ā
Ā
-
@error_bot auto c5
auto e5
-
Ā
Ā
-
@error_bot auto c6
auto d6
auto e6
-
Ā
Ā
-
@Pleegwat implementation is compliant now
@hungrier auto is implemented
--force
will override the spoopy face response (which refuses to reveal flagged squares or auto if the number is unknown or doesn't match the number of adjacent flags).Known issue: flag commands and reveal/auto commands are processed in parallel, so I expect weirdness when batching auto with flag.
TODO: process commands in same order they are received, to address above issue
TODO: allow multiple squares to be specified for each commandDone!
TODO: reveal all mines on game over (exploded if revealed)Done!
TODO: refactor/consolidate logic
TODO: I know I could improve the graphics, but 32KB is so tiny
-
@error_bot reveal g1 --force
-
You lose!
-
New game.
-
@error_bot auto c3
-
Ā
Ā
-
@error_bot reveal e3
-
You lose!
-
New game.