This is a web-based Star Wars Trivia game built using Cloudflare Workers and Hono. The game presents users with trivia questions about the Star Wars universe, pulling data from the Star Wars API (SWAPI) to generate questions dynamically. The game features a visually appealing interface with a Star Wars-themed background, including a hyperdrive animation and the iconic opening crawl text.
The game is deployed and can be played at: https://cursor.star-wars-trivia-123.workers.dev/
To set up this project locally:
Install dependencies:
npm install
Run the development server:
npm run dev
To deploy updates to Cloudflare Workers:
Run the deploy command:
npm run deploy
-src/index.ts: Main application file containing the game logic and HTML structure
-src/mockAI.ts: Mock AI service for local development
-wrangler.toml: Configuration file for Cloudflare Workers
-package.json: Project dependencies and scripts
Contributions, issues, and feature requests are welcome. Feel free to check [issues page] if you want to contribute.
[Specify your license here]
[Your Name]