Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
crossword
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Silas Dohm
crossword
Commits
b61bca52
Commit
b61bca52
authored
Mar 8, 2023
by
Silas Dohm
Browse files
Options
Downloads
Patches
Plain Diff
clean up
parent
e5ae9f5e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
notes.txt
+0
-50
0 additions, 50 deletions
notes.txt
todo.md
+0
-10
0 additions, 10 deletions
todo.md
with
0 additions
and
60 deletions
notes.txt
deleted
100644 → 0
+
0
−
50
View file @
e5ae9f5e
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
This diff is collapsed.
Click to expand it.
todo.md
deleted
100644 → 0
+
0
−
10
View file @
e5ae9f5e
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment