IsItTwoWords
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v63View latest version
-
Is it Two Words?
-
Star/Rats
-
backwords
-
Quick Swipe Word Quiz #1
-
emagdrow
-
starting menu
-
scoring
-
how to
-
share link
The app now uses a backend API to serve word data:
- Backend:
/backend/index.tsserves the main application and API endpoints - Wordlist API:
/api/wordlistserves the word data from/backend/wordlist.tsx - Frontend: React components fetch wordlist data from the backend API instead of using hardcoded arrays
- Frontend App component loads and shows "Loading words..."
- useEffect hook fetches wordlist from
/api/wordlist - Backend serves the full wordlist data from
wordlist.tsx - Frontend stores the complete word objects with all metadata (text, ltr, rtl, palindrome)
- App renders using
word.textwhere needed, but has access to all word properties
handle data: random for now into 3 packs?
- pack 1
- pack 2
state: time, score, current_word_index
How to play:
If you see a word, swipe left to right. If you see a word spelled backwards, swipe right to left. If you see something that is both a word, a a word spelled backwards, swipe back and forth.