GaussTrix is a thrilling two-player math trivia game that challenges your knowledge of mathematics, mathematicians, and their groundbreaking discoveries. Compete with your friends to see who can reach 100 points first by answering questions about the fascinating world of math!
The goal of GaussTrix is simple: be the first player to score 100 points by answering math-related trivia questions correctly.
Follow these instructions to install and run GaussTrix on your system:
- Clone the project into your system
git clone https://github.com/manishacharya60/samsara-gaussTrix.git
- If you want to run the
backend
locally, go into thebackend
folder and create a file named.env
- Add the following line in your
.env
file:OPENAI_API_KEY=<Your OpenAI API Key Here>
- Then, run the following command.
By default, the backend runs on http://localhost:8080
$ node .
- Then, go back to the
frontend
folder and run the following commands$ npm install
- Finally, run the following command
By default, the frontend runs on http://localhost:3000
$ npm start
- Two-Player Gameplay: Engage in a head-to-head trivia battle with a friend.
- Diverse Questions: Explore questions covering mathematicians' lives, discoveries, and intriguing math facts.
- Timed Challenges: Each player has 30 seconds to answer each question, adding a layer of excitement and pressure.
- Scoring System: Earn 10 points for each correct answer. The first player to reach 100 points wins the game.
- Strategic Play: Incorrect answers pass the question to the other player, making every move critical.
- Turn-Based Play: Players take turns answering trivia questions.
- Answering Questions: You have 30 seconds to answer the question presented to you. If you answer incorrectly or run out of time, the question passes to your opponent.
- Scoring: Each correct answer earns you 10 points. Keep playing until one player reaches or exceeds 100 points.
- Winning: The game ends immediately when a player reaches 100 points, crowning them the GaussTrix champion.
If you want to contribute to GaussTrix, feel free to fork the repository, create a new branch, and submit a pull request. We're open to improvements, new features, and bug fixes.