Pythagorus Plains

An interactive educational game built with vanilla JavaScript.

Project Narrative

Pythagorus Plains is a web-based educational game my team developed to make learning geometric principles more accessible and fun. The core of the game involves a series of trigonometric problems that the user has to solve in order to attack and defeat monsters, while being harmed with every wrong answer.

Lessons Learned

Building this project was a fantastic exercise in DOM manipulation and state management with vanilla JavaScript. We focused on creating a real-time feedback loop for the user, ensuring the interface was responsive and intuitive for both desktop and mobile use. It taught me a great deal about structuring game logic and designing for a positive user experience.

Tech Stack

  • HTML5
  • CSS3
  • JavaScript (Vanilla)

Core Logic

// Core game logic example
function checkAnswer(playerInput, solution) {
  const isCorrect = (playerInput === solution);
  
  if (isCorrect) {
    updateScore();
    displayMessage("Correct!");
  } else {
    displayMessage("Try again!");
  }
  
  return isCorrect;
}
← Back to All Projects