- i have added an integer field game_id to the rounds.ts data. It is currently always set to 0.
- Change the structure of the game_results table so that game_id is an int. change the db init code as well. you can drop the existing table as a one-off
- eventually there will be more games than id = 0, so update frontend code and anywhere else to use the game_id from the rounds data.
-- create a preGame.tsx component and refactor App.tsx to use the component. There should be no changes to the app's behavior
make the following changes to the preGame view.
Here is the desired structure within the gameContainer:
- header
- instructions
- Title
- playButton
- notes - smaller text with 3 list items:
- Wordnik Disclaimer, for now just say "Valid words the Github-hosted wordlist from Wordnik" https://github.com/wordnik/wordlist
- LLM disclaimer: just say "I relied on LLM assistance significantly in building this. It still feels like "made" the game, but if LLMs aren't your thing,
- I tried to keep all my input the towniePrompts directory of my project:
- Made on/with val town : source code
How to play.
- You'll be given a constraint (like: ends with FISH)
- Try to think of a long word that fulfills the constraint (like: CUTTLEFISH)
- If the word is in the dictionary, you'll get one point for each letter (CUTTLEFISH is worth 10 points)
- there are five rounds and no time limit. So feel free to...
---end text for instructions---
Adjust the html and CSS so that the elements fill the full width and height of gameContainer in a visually pleasing way. The title should be roughly in the center of the screen.
-
tweak the layout so the final list item is still visible on safari on an iphone mini
-
adjust the css so that the pre-game-title is significantly more prominent
-
adjust the keyboard: swap positions so that the backspace is on the right M and the arrow keys are to the left of Z.
-
please fix this error I encountered when I tried to submit with club:PIETEST and user:AWTHREE: "Unexpected token '<', " <"... is not valid JSON"
improve input from physical keyboard
- browser shortcuts shouldn't be overrode
- as an example if the user tries to refresh the page with cmnd+R, it will not work, and instead R will be added to currentGuess.
DONE: Added check for metaKey, ctrlKey, altKey in keyboard handler to allow browser shortcuts
- Remove the "play again" button from postGame view
- The postGame view should include the keyboard component and use that for input of club and username.
- After a the user submits to the leaderboard, navigate directly to the leaderboard instead of having handleViewLeaderboard behind a button.
resize the postGame view everything fits into the height of the game container without scrolling. Put the input for club and username in a single row and remove the "submit to leaderboard" title (the button is sufficient)
DONE:
- PostGame now uses keyboard for club/player input
- Inputs are in a single row with compact styling
- No scrolling needed - fits within game container
- Auto-navigates to leaderboard after successful submission
- Removed "Play Again" from postGame (still available on leaderboard view)