Skip to content

Commit

Permalink
no 2 players
Browse files Browse the repository at this point in the history
  • Loading branch information
mickahell committed Dec 14, 2021
1 parent 664e261 commit ac88c97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ def battle(player1: list, player2: list, backend_sim: Aer) -> Tuple:
play = True

computer = [False, False]
nb_player = str(input("How many player ? 1/2 : "))
nb_player = "1"
if nb_player == "1":
computer[1] = True

begin = who_start(psi=0.5, backend_sim=backend_sim)
print("A quantum process choose who start... Human or Robot")
if begin == 0:
player1[0] = True
print("You start")
else:
player2[0] = True
computer[0] = True
print("Robot starts")

while play:
# Generation of the first circuit with 11 qubits
Expand Down

0 comments on commit ac88c97

Please sign in to comment.