Como funcionam as instruções?
Estou fazendo um jogo de roleta russa baseado em texto em Python, mas ainda não estou terminando, como se pode ver apenas olhando meu código:
#!/usr/bin/env python
print("The maximum number of bullets is 3")
bulletcounter = input("How many bullets do you want your gun to have?")
print(bulletcounter, "bullets")
paname = input("Enter Player 1's Name: ")
pbname = input("Enter Player 2's Name: ")
print(paname.capitalize(), "Vs.", pbname.capitalize())
if bulletcounter == 1:
bulletcount = 0
print(bulletcount)
bulletaloc = random.randint(1, 6)
while bulletaloc != bulletcount:
bulletcount += 1
Por alguma razão, mesmo que alguém entre1
para dentrobulletcounter
, não aciona oif
declaração:if bulletcounter == 1
. Como faço para ativar oif
declaração