Overview • Installation • Screenshots • License
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 | ψ | ψ | ψ |
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
Screen and effects displayed after winning a game
Screen and effects displayed after loosing a game
This project is licensed under the MIT License - see the LICENSE file for details.