diff --git a/README.md b/README.md index b1917c8..6bd68fe 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,5 @@ - [x] fix undo missing animation - [x] fix undo when circle picked - [ ] add about page -- [ ] handle U, R and A keypresses +- [ ] fix victory / gameover modal +- [x] handle U, R and A keypresses diff --git a/src/App.svelte b/src/App.svelte index 8649c4d..519c601 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -5,11 +5,7 @@ const adjcs = new Graph() const jumps = new Graph() - const C_MAX_CIRCLES = 21 - const C_POLE = "pole" - const C_HOLE = "hole" - const C_PICK = "pick" - const C_DEST = "dest" + const C_MAX_CIRCLES = 15 const triangular = n => (n <= 1 ? 1 : n + triangular(n - 1)) const leftMost = detph => (detph == 0 ? 0 : triangular(detph)) @@ -55,10 +51,15 @@ + +
+ {#each circles as _, i} + {#key circles[i]} +
dispatch('change', i)} + in:receive={{ key: i }} + out:send={{ key: i }} /> + {/key} + {/each} +