/quantum-mechanics

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Quantum Games

Welcome to the Quantum Games repository!

Description

This repository contains two Java games related to quantum physics:

  1. Schrödinger's Cat Game (Schrodinger's Cat Experiment)
  2. Quantum Double Slit Game (Double Slit Experiment)

How to Play

  1. Clone the repository to your local machine.
  2. Compile and run the games using a Java compiler or IDE.
  3. Choose the game you want to play and follow the on-screen instructions.

Game Descriptions

Schrödinger's Cat Game (Schrodinger's Cat Experiment)

In the Schrödinger's Cat Game, you will embark on a quantum journey with Schrodinger's famous thought experiment. You find yourself in a peculiar situation where a cat is enclosed inside a box along with a vial of poison. According to quantum mechanics, until you open the box to observe the cat, it exists in a superposition of both alive and dead states. Your task is to decide the fate of the cat by opening the box.

How to Play:

  • Choose a box number from 1 to 5.
  • Watch the animation as you open the box and reveal the fate of the cat.
  • Experience the mystery of quantum superposition and the consequences of your observation.

Quantum Double Slit Game (Double Slit Experiment)

In the Quantum Double Slit Game, you will explore the fascinating phenomenon of wave-particle duality. Imagine sending subatomic particles, such as electrons or photons, through two narrow slits onto a screen. When unobserved, these particles exhibit wave-like interference patterns, but when observed, they behave like individual particles.

How to Play:

  • Choose the type of subatomic particle (electron, photon, or neutron) to send through the double slits.
  • Observe the particle behavior on the screen.
  • Toggle the observer effect on and off to see how observation affects the outcome.
  • Experience the intriguing world of quantum mechanics and its impact on particle behavior.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Feel free to contribute to the project by opening issues or submitting pull requests.

Enjoy the games!