Public
Like
thinkalittlelonger
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: v189View latest version
- 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
- remove the play again button from postGame and leaderBoard views
- 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.
- on postGame view, make sure the keyboard component is visible