This is a simple quiz game written in NodeJS. It uses socket.io to communicate between the server and the client. The game displays an image modified by an AI and the players have to guess the answer to earn points.
Clone the repository and navigate to the project directory
git clone https://github.com/Pop115/Popix
cd popix
Install the dependencies
npm install
Start MongoDB on port 27017 (only supporting locally)
Start the game
node src/index.js
(Optional) Launch stable-diffusion-webui if you want to generate new images
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
cd stable-diffusion-webui
./webui-user.bat
Open the game in your web browser at http://localhost:3000
Open the game in your web browser at http://localhost:3000
Enter your name and click "Ok"
When an image is displayed, type your answer in the text box and press enter
If your answer is correct, you will earn points and a new round will start
The images will progressively be closer to the original image until there are no more images left
The rounds continue indefinitely
Open the game in your web browser at http://localhost:3000/admin
Submit a picture, the prompt that will be used for stable-diffusion to generate the modified pictures and the answer to win the round
The images will be generated (can take a few minutes) and once all images are generated the question will be available on the game
If another generation is already running, your question will be added to the queue and will be processed automatically after
If you want to contribute to the project, please follow these steps:
Fork the repository
Create a new branch for your changes
Make the necessary changes and commit them
Push the changes to your fork
Create a new pull request to the main repository
This project is licensed under the MIT License. See the LICENSE file for more details.