gricha2380 / regex

https://gricha2380.github.io/regex/demo
0 stars 0 forks source link

Build random lock toggle #51

Closed gricha2380 closed 6 years ago

gricha2380 commented 6 years ago

on battle.html create randomLock checkbox which defaults to on and randomly disables certain cards from the player's deck. This adds a layer of challenge and replayability to solving each level. It's main benefit is in arcade mode.

gricha2380 commented 6 years ago

Random lock is now functional within arcade levels. The toggle however does not yet work. The toggle is currently a checkbox, but the checkbox value is read on page load and remains stored for the duration of the session. This prevents the user from ever actually changing the state. What I need to do is have the checkbox trigger a localstorage variable so once the page reloads, the game reflects the value they chose before reload.