Commit Graph

165 Commits

Author SHA1 Message Date
Florine W. Dekker bd5f9acb68
Rename some statistics for clarity 2020-08-12 16:32:50 +02:00
Florine W. Dekker 303508a1f7
Adjust some button colours 2020-08-10 21:18:32 +02:00
Florine W. Dekker 0901ce20c0
Change some button icons 2020-08-10 21:08:29 +02:00
Florine W. Dekker 0ba2f34146
Give preciser hints
Fixes #84.
2020-08-10 20:59:18 +02:00
Florine W. Dekker 6adc3de1c4
Add fallback font
Fixes #83.
2020-08-10 19:56:28 +02:00
Florine W. Dekker 0e9c1816c7
Implement hint button
Fixes #12.
2020-08-09 17:38:39 +02:00
Florine W. Dekker 5b62f2c427
Adjust some statistics 2020-08-09 14:28:25 +02:00
Florine W. Dekker f2a0fd69c6
Prevent overflow of overlays
Fixes #82.
2020-08-09 02:21:38 +02:00
Florine W. Dekker 0078e94c3b
Fix undefineds in statistics overview 2020-08-09 02:01:37 +02:00
Florine W. Dekker aa2923a245
Add statistics tracking
Fixes #76.
2020-08-08 02:41:21 +02:00
Florine W. Dekker d74cb79957
Uncover to-be-clicked square
Fixes #63. Also, preset fields are now guaranteed solvable by default.
2020-08-07 13:44:45 +02:00
Florine W. Dekker 336337eedb
Speed up solver, find edge cases
For real this time!
2020-08-07 13:13:14 +02:00
Florine W. Dekker fb1825b262
Make Field fields mostly private
Fixes #66.
2020-08-07 12:35:39 +02:00
Florine W. Dekker b6b817e10c
Add timer for finding solvable field 2020-08-07 12:24:56 +02:00
Florine W. Dekker 3ec38607ca
Fix mine count after win
Fixes #81.
2020-08-07 11:38:09 +02:00
Florine W. Dekker 77758e8277
Implement redo button
Fixes #78.
2020-08-07 00:19:17 +02:00
Florine W. Dekker 36851cae42
Rename fields to be betterer
Fixes #67.
2020-08-06 21:03:25 +02:00
Florine W. Dekker 03cc2509ad
Add button icons
Fixes #77.
2020-08-06 20:56:45 +02:00
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