Commit Graph

147 Commits

Author SHA1 Message Date
Florine W. Dekker 5ce0fc7cd8
Prevent incorrect solver moves
Fixes #74.
2020-08-06 14:48:36 +02:00
Florine W. Dekker d63096687d
Ensure solvability by default 2020-08-06 13:26:25 +02:00
Florine W. Dekker 388ab829c2
Stop uncovering after uncovering mine
Fixes #73.
2020-08-06 11:44:11 +02:00
Florine W. Dekker ee9eba0284
Make solver discover more edge cases 2020-08-06 11:28:15 +02:00
Florine W. Dekker adc9037372
Inline undoable actions 2020-08-05 22:37:32 +02:00
Florine W. Dekker 49d27986b2
Add colours to status bar icons
Fixes #70.
2020-08-05 19:51:07 +02:00
Florine W. Dekker 1acdc3a84e
Rename game to Minesweeper
Fixes #71.
2020-08-05 19:32:01 +02:00
Florine W. Dekker 6d11be2886
Add confetti and redness
Fixes #46.
2020-08-05 19:28:35 +02:00
Florine W. Dekker efecb14cec
Slightly optimise drawing or something 2020-08-05 17:27:00 +02:00
Florine W. Dekker 6008a166b0
Fix canvas top border flickering
Fixes #59.
2020-08-05 17:25:16 +02:00
Florine W. Dekker fde0b1d31b
Update flag count on adding/removing flag
Fixes #69.
2020-08-05 13:15:18 +02:00
Florine W. Dekker 7e86994ecf
Give coords to solver when solving
Fixes #68.
2020-08-04 21:43:45 +02:00
Florine W. Dekker 6fbdc17bce
Add overlay for seed input
Fixes #62.
2020-08-04 21:41:10 +02:00
Florine W. Dekker c2544c520c
Fix incorrect overlay closing in Chrome
Fixes #61.
2020-08-04 21:04:22 +02:00
Florine W. Dekker 86352768de
Clean up a bit of code
Fixes #58.
2020-08-04 21:00:12 +02:00
Florine W. Dekker 1fdf55734b
Move first click logic into `uncover`
Also fixes #65.
2020-08-04 20:48:57 +02:00
Florine W. Dekker b7361256a2
Move change detection control to Field 2020-08-04 20:26:05 +02:00
Florine W. Dekker 551d36ca56
Implement `runUndoably` to hide `history` field
Fixes #64.
2020-08-04 20:02:10 +02:00
Florine W. Dekker de87838da6
Fix typos
Also change the versioning scheme.
2020-08-04 00:00:18 +02:00
Florine W. Dekker d40cdb2d43
Cache neighbours of squares 2020-08-03 18:57:12 +02:00
Florine W. Dekker 3b336a6a03
Correctly reposition overlay for large pages
Fixes #57.
2020-08-03 17:32:08 +02:00
Florine W. Dekker cd86f60456
Switch to different RNG
Fixes #56.
2020-08-03 17:25:03 +02:00
Florine W. Dekker ffaaf3bf15
Refactor field for better maintainability
Fixes #55.
2020-08-03 17:02:18 +02:00
Florine W. Dekker 7ea598ac95
Add experimental option to ensure solvability
Fixes #30.
2020-08-03 15:50:43 +02:00
Florine W. Dekker 312818ab48
Make solver remove flags before starting game 2020-08-03 12:40:46 +02:00
Florine W. Dekker 925102e3ec
Make solver distrust player's flags
Fixes #54.
2020-08-03 12:37:04 +02:00
Florine W. Dekker 69c43996d7
Close overlay on Esc or click outside of overlay
Fixes #53.
2020-08-03 11:41:25 +02:00
Florine W. Dekker a6c2776b06
Do not resume game after undoing with 0 mines
Fixes #51.
2020-08-02 20:49:18 +02:00
Florine W. Dekker 836aaa6271
Split solver results into two sequences
Fixes #52.
2020-08-02 20:45:54 +02:00
Florine W. Dekker 54f0656e20
Stop displaying all bombs after losing
Fixes #50.
2020-08-02 18:39:33 +02:00
Florine W. Dekker 16285257b6
Ensure first click cannot be undone
Fixes #49.
2020-08-02 18:31:35 +02:00
Florine W. Dekker 0cabcdc74e
Add pausing counter, fix death counter
Fixes #47.
2020-08-02 17:55:49 +02:00
Florine W. Dekker 21c27ada60
Hide field until rendering is complete
Fixes #45.
2020-08-02 17:26:11 +02:00
Florine W. Dekker 5117d3b045
Add death counter
Fixes #42.
2020-08-02 17:23:35 +02:00
Florine W. Dekker c7b097913e
Split up draw function
Fixes #44.
2020-08-02 17:16:17 +02:00
Florine W. Dekker 92ac1201dc
Change times to display minutes 2020-08-02 16:47:59 +02:00
Florine W. Dekker d28069ac22
Implement undo button
Fixes #11.
2020-08-02 16:22:18 +02:00
Florine W. Dekker 99788e3090
Improve custom difficulty selection
Fixes #41.
2020-08-02 14:46:38 +02:00
Florine W. Dekker aa53ad6d1b
Consistify documentation
Fixes #40.
2020-08-02 13:56:28 +02:00
Florine W. Dekker 4d06ba4215
Add difficulty presets
Fixes #29.
2020-08-01 18:37:44 +02:00
Florine W. Dekker a7908faa87
Make status bar at bottom easier on the eye
Fixes #39.
2020-08-01 17:27:46 +02:00
Florine W. Dekker 2a01a9d780
Surround field with border
Fixes #27.
2020-08-01 15:53:50 +02:00
Florine W. Dekker 10050fe1e2
Improve performance of `uncover`
Fixes #36.
2020-08-01 15:12:26 +02:00
Florine W. Dekker e65a587261
Allow string seeds
Fixes #38.
2020-08-01 14:50:58 +02:00
Florine W. Dekker 0010b9c71c
Move buttons to top, rewrite Game constructor 2020-08-01 14:42:36 +02:00
Florine W. Dekker f4571e9567
Replace seed input with button
Fixes #26.
2020-08-01 14:09:44 +02:00
Florine W. Dekker e3b3228e59
Prevent mine duplication
Fixes #37.
2020-08-01 13:49:38 +02:00
Florine W. Dekker 2c80abc226
Highlight too many flags around square
Fixes #34.
2020-08-01 02:08:44 +02:00
Florine W. Dekker 480aeba120
Allow playing with only one non-mine
Fixes #32.
2020-08-01 01:59:43 +02:00
Florine W. Dekker 1450da5f1c
Make `uncover` non-recursive
Fixes #35.
2020-08-01 01:49:25 +02:00