Skip to content
Snippets Groups Projects
Commit b61bca52 authored by Silas Dohm's avatar Silas Dohm
Browse files

clean up

parent e5ae9f5e
Branches
No related tags found
No related merge requests found
cell:
properties:
-char actual_letter;
-char current_letter;
-is either a letter or question
-can be part of up to two words
-> only one active word (horizontal/vertical)
-can be last letter of word
functionality:
-if current_letter is updated
->loop over letters in words
->if all letters are filled in
->check if word is correct, maybe give feedback
-if letter is input and cell is not last letter of word
->change active cell to the next cell in active word
visual:
possible colors:
active color (currenlty selected)
part of active word color
question color
word:
-is made of letters
navigation:
keyboard vim:
navigation mode:
j = down
k = up
l = right
h = left
i = insert (switch to input mode)
changing betweent horizontal and vertical navigation requires two inputs
the first input just changes the direction the word
additional things worth considering:
-w = start of next word
-e = end of word
ect...
input mode:
a..z = input letters into cells
esc = switch to navigation mode
thoughts:
answers are stored client-side which enables cheating, but since almost all answers can be googled anyway this really isnt an issue.
one way to avoid storing answers client-side would be to store words serverside and make the client send a request(word_id,word)
and the server replies with true/false
use a better font (vertical text should be aligned)
decide on color pallet
improve input:
add visual feedback indicating current mode
vim mode:
✅add replace mode (key=r)
insert mode:
✅only allow characters a..z and A..Z keycode 65..90
✅add backspacke functionality
maybe arrowkeys
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment