Commit Graph

42 Commits

Author SHA1 Message Date
Florine W. Dekker ac7c964ed0
Rewrite to TypeScript 2020-07-31 23:12:16 +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
Florine W. Dekker 7fac1fe25d
Show skull and uncover field after finishing
Fixes #1. Fixes #2.
2020-07-28 21:43:17 +02:00
Florine W. Dekker e9b4f7749e
Allow chording with LMB+RMB
Fixes #5.
2020-07-28 21:25:49 +02:00
Florine W. Dekker 18d17cbe3b
Fix erroneous trigger for first mine move 2020-07-28 21:20:51 +02:00
Florine W. Dekker 4feb43786b
Rename Cell to Square
Fixes #10.
2020-07-28 21:00:25 +02:00
Florine W. Dekker 86b30676ff
Freeze field after completion
Fixes #4. Fixes #8.
2020-07-28 00:06:40 +02:00
Florine W. Dekker 36444faca0
Document Matrix 2020-07-27 23:24:56 +02:00
Florine W. Dekker c270b643e1
Replace RNG library with a smaller one 2020-07-26 21:26:49 +02:00
Florine W. Dekker 06b8b01735
Expand semi-working solver 2020-07-26 02:30:49 +02:00
Florine W. Dekker ecd82d3f4d
Add first semi-working solver 2020-07-26 00:57:21 +02:00
Florine W. Dekker 08b707d017
Simplify some calls 2020-07-25 22:00:33 +02:00
Florine W. Dekker 7dd4af8787
Simplify iteration using lambdas 2020-07-25 21:00:04 +02:00
Florine W. Dekker 4ad68b6a8f
Use dependency for RNG library 2020-07-25 20:47:15 +02:00
Florine W. Dekker e67631fcd4
Prevent MMB scrolling 2020-07-25 20:41:56 +02:00
Florine W. Dekker 65da82257b
Set up deployment with npm 2020-07-25 20:35:59 +02:00