Commit Graph

165 Commits

Author SHA1 Message Date
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
Florine W. Dekker ebb56ee7c1
Remove scale, validate inputs
Fixes #25. Fixes #31.
2020-08-01 01:38:08 +02:00
Florine W. Dekker 9bb75784a8
Solve miscellaneous out-of-range bug
Occurs sometimes when the number of open squares is less than the number of neighbouring covered squares.
2020-08-01 00:18:51 +02:00
Florine W. Dekker 0affcd0675
Make solver aware of remaining number of mines 2020-07-31 23:42:11 +02:00
Florine W. Dekker ac7c964ed0
Rewrite to TypeScript 2020-07-31 23:12:16 +02:00
Florine W. Dekker 671fb5ff2a
Move fonts to subdirectory 2020-07-31 11:57:01 +02:00
Florine W. Dekker 15bea44e02
Set presets to standard easy difficulty 2020-07-31 00:18:42 +02:00
Florine W. Dekker f3fb004a05
Remove cursor highlight 2020-07-31 00:11:32 +02:00
Florine W. Dekker 49c61efa28
Check for nullity where possible 2020-07-31 00:05:46 +02:00
Florine W. Dekker 8c90525230
Allow solving before first click
Fixes #28.
2020-07-30 23:39:48 +02:00
Florine W. Dekker de7b40c3c8
Add colours to numbers
Fixes #24.
2020-07-30 23:21:31 +02:00
Florine W. Dekker 912f3410a4
Improve cover symbol visuals
Fixes #15.
2020-07-30 23:00:08 +02:00
Florine W. Dekker c71f9cbc84
Add win/lose indicators
Fixes #16.
2020-07-30 21:58:23 +02:00
Florine W. Dekker b21dc19815
Ensure no random crashes hopefully 2020-07-30 21:39:39 +02:00
Florine W. Dekker 971fcaeac1
Validate board size validity 2020-07-30 21:28:47 +02:00
Florine W. Dekker 793da19c00
Remove mines from starter neighbours as well
Fixes #9.
2020-07-30 21:26:16 +02:00
Florine W. Dekker a167922c00
Fix moving mine to wrong square 2020-07-30 20:56:13 +02:00
Florine W. Dekker 7d280f2604
Properly rescale field after starting new game 2020-07-30 20:43:37 +02:00
Florine W. Dekker 452300f1e7
Fill in all flags after win
Fixes #23.
2020-07-30 20:31:34 +02:00
Florine W. Dekker 64d37ad8e0
Highlight cells being chorded
Fixes #6.
2020-07-30 20:18:45 +02:00
Florine W. Dekker a61534d288
Resolve annoying matrix error message
Fixes #21.
2020-07-30 12:05:36 +02:00
Florine W. Dekker 5c432e0a5f
Let solver solve whole field in one go 2020-07-30 12:03:47 +02:00
Florine W. Dekker bc6934ba15
Unhighlight square after mouse leaves canvas
Fixes #20.
2020-07-30 11:52:33 +02:00
Florine W. Dekker 87b301cdd9
Start game only after fonts have been loaded 2020-07-30 11:45:00 +02:00
Florine W. Dekker a83d1ff1ac
Replace counts with monospace icons 2020-07-30 00:07:16 +02:00
Florine W. Dekker 52302769b8
Use semi-pretty icons as symbols 2020-07-29 23:33:07 +02:00
Florine W. Dekker 602d83b383
Add timer
Fixes #6.
2020-07-29 22:37:26 +02:00
Florine W. Dekker acffa4ca0f
Display number of mines left
Fixes #17.
2020-07-29 22:25:14 +02:00
Florine W. Dekker 81206c5a87
Fix scaling issues
Fixes #18.
2020-07-29 21:01:51 +02:00
Florine W. Dekker cbd5235854
Improve solver algorithm 2020-07-29 10:51:16 +02:00
Florine W. Dekker 69367b9247
Resolve mixed-up coordinate system
Fixes #13.
2020-07-28 23:40:54 +02:00
Florine W. Dekker 0802f2d2d5
Remove logging, rearrange divs 2020-07-28 23:34:44 +02:00
Florine W. Dekker 8ca947d782
Slightly improve auto-solver 2020-07-28 23:19:37 +02:00