Skip to content

Commit

Permalink
Move some files to python folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianJohnsen97 committed Aug 9, 2019
1 parent dbd73b0 commit 1baec5c
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Board.py → Python/Board.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import sys
sys.path.append(dirname(abspath(__file__)))
from qiskit import ClassicalRegister, QuantumRegister, QuantumCircuit, execute
from helpFiles import get2DiffRandNum, get3DiffRandNum
from Python.helpFiles import get2DiffRandNum, get3DiffRandNum
from qiskit import BasicAer
from numpy import power, abs, where, array, zeros, empty, absolute, sort
from numpy.random import randint, seed
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions PokerGame.py → Python/PokerGame.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from os.path import dirname, abspath
import sys
sys.path.append(dirname(abspath(__file__)))
from interactive import InteractiveContainer
from Board import Board
from Buttons import InteractiveButtons
from helpFiles import distributeGates
from Python.interactive import InteractiveContainer
from Python.Board import Board
from Python.Buttons import InteractiveButtons
from Python.helpFiles import distributeGates
from numpy import amax, array, sum, empty, append, argwhere, copy, any, in1d, argsort, zeros
from qiskit import execute, Aer
from time import time
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions interactive.py → Python/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import sys
sys.path.append(dirname(abspath(__file__)))
import matplotlib.pyplot as plt
from helpFiles import getUnentangledTag
from CustomButton import Button
from CustomTextBox import TextBox
from Python.helpFiles import getUnentangledTag
from Python.CustomButton import Button
from Python.CustomTextBox import TextBox
from numpy import array, concatenate, flip


Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions runPoker.py → Python/runPoker.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from os.path import dirname, abspath
import sys
sys.path.append(dirname(abspath(__file__)))
from PokerGame import PokerGame
from Python.PokerGame import PokerGame
import matplotlib.pyplot as plt
from helpFiles import getIntInput
from Python.helpFiles import getIntInput
from numpy import array, count_nonzero, nonzero, delete, flip


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ After the first three cards have been revealed, a second round of betting takes
If a player has no money left on the table, he is out of the game, and the winner is the last person to have any money left.

## How to get started
The game requires the Qiskit package for Python to be able to run. For help installing Qiskit please see [qiskit.org](https://qiskit.org/documentation/install.html). In the Jupyter Notebok file [runPokerJN.ipynb](runPokerJN.ipynb) an example game along with instructions on how to play the game is included. To play the game, either open the file [runInteractivePokerJN.ipynb](runInteractivePokerJN.ipynb) through Jupyter Notebook (in a Qiskit environment) or run the file [runPoker.py](runPoker.py) locally. Running the game in Jupyter Notebook is notably slower than running the proper Python file.
The game requires the Qiskit package for Python to be able to run. For help installing Qiskit please see [qiskit.org](https://qiskit.org/documentation/install.html). In the Jupyter Notebok file [runPokerJN.ipynb](Python/runPokerJN.ipynb) an example game along with instructions on how to play the game is included. To play the game, either open the file [runInteractivePokerJN.ipynb](Python/runInteractivePokerJN.ipynb) through Jupyter Notebook (in a Qiskit environment) or run the file [runPoker.py](Python/runPoker.py) locally. Running the game in Jupyter Notebook is notably slower than running the proper Python file.

You can also find more info here [https://arxiv.org/abs/1908.00044](https://arxiv.org/abs/1908.00044).

Expand Down

0 comments on commit 1baec5c

Please sign in to comment.