The game is a web-based "True or False" trivia app where players are presented with various facts and must determine whether these facts are true or false. Each player is provided with three lives, each incorrect answer costs one life.
I was inspired by a similar game I am playing with my kids on a long drives, where we invent some facts and ask each other if this is true or false.
I am not a very good developer but with the help of Gemini and partly ChatGPT4 I was able to create this web game.
Technologies Used:
- Node.js and Express.js: The backend server is set up using Express.js, which handles API requests and serves the static files.
- GoogleGenerativeAI API: It’s integrated to dynamically generate factual content that players have to evaluate as true or false.
- Tailwind CSS: This utility-first CSS framework is used for styling the web pages, ensuring responsiveness and a modern look.
- HTML and Vanilla JavaScript: Used for structuring the frontend and handling user interactions like button clicks and displaying the game results.
Interesting Features:
- Dynamic Content Generation: The game uses the GoogleGenerativeAI API to generate new facts, which means the content is always fresh and players can encounter new challenges each time they play. Sometimes model can hallucinate and throw random 500 errors, but in general it works pretty good.
- Game Statistics: Players can see their current score and the number of lives remaining. The game also offers functionality to start a new game and share results, which increases replayability.
- Simple and Responsive UI: Using Tailwind CSS and modern HTML practices, the game provides a clean, attractive interface that adjusts well to different screen sizes, ensuring a good user experience across devices.
Built With
- express.js
- javascript
- node.js
- tailwind
Log in or sign up for Devpost to join the conversation.