3 ms·
This is a little side project I made to learn about Web sockets. Each question consists of a "match" pattern and a "skip" pattern, and then looks up words on wo
by impostervt 10y ago
This is a little side project I made to learn about Web sockets. Each question consists of a "match" pattern and a "skip" pattern, and then looks up words on wordsapi.com to match those patterns when the question is generated.
It was hard thinking up patterns, so if you have ideas, please let me know.
- chii 10y agoi think you should start off with patterns that have less characters (3-5 max), but mix digits and symbols in - at least, in the early game. I found the patterns to be too complex to quickly come up with a regex. Alternatively, use a very limited alphabet (like 'a', 'b', 'c'), and have longer patterns like 'aabbaaabbbc'.
- marcoperaza 10y agoCool concept, but I think it'd be infinitely better if the challenges were more realistic/interesting. E.g. matching dates in a particular format, but not another similar format.
- natch 10y agopattern idea: provide a UI for users to suggest sets of data to match.