SmartMaatt / quantum-tic-tac-toe

A quantum game of tic-tac-toe based on cubit superposition.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quantum Tic-Tac-Toe

OverviewInstallationScreenshotsLicense

Overview

The board below represents the initial state of the game. Symbol |ф> represents the superposition state! The user always has the option to make the first move. Signs [0> and |1> represent the figures chosen by the computer and the user respectively. However, unlike the classic tic tac toe, there is no 100% probability that when the computer/user make their move, it will result in a corresponding move. For example, if the user selects a figure, it is possible that it will take the value |0> instead of |1>. This is the effect of quantum superposition in the game Quantum Tic Tac Toe!

0 1 2
0 ψ ψ ψ
1 ψ ψ ψ
2 ψ ψ ψ

Installation

Install Quantum Tic-Tac-Toe with pip

  python -m venv venv
  venv\Scripts\activate
  python -m pip install --upgrade pip
  pip install -r requirements.txt
  streamlit run app.py

Screenshots

Game The main screen of the game.

Winning Screen and effects displayed after winning a game

Loosing Screen and effects displayed after loosing a game

License

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


© 2023 Mateusz Płonka (SmartMatt). All rights reserved.

PortfolioGitHubLinkedInYouTubeTikTok

About

A quantum game of tic-tac-toe based on cubit superposition.

License:MIT License


Languages

Language:Python 100.0%