MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / jogar

Function jogar

projects/Jokenpo/main.py:5–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def jogar():
6 print("====== JOGAR ======")
7 try:
8 jogador1 = Jogadores
9 jogador1.nome = input("Digite seu nome: ")
10 jogador1.distribuir_cartas(jogador1)
11
12 jogador2 = Jogadores("Computador")
13 jogador2.distribuir_cartas()
14
15 partida = Partida(jogador1, jogador2)
16 partida.jogar()
17 except Exception as e:
18 print("Erro: " + str(e))
19
20
21def simularJogo():

Callers 1

main.pyFile · 0.70

Calls 4

distribuir_cartasMethod · 0.95
jogarMethod · 0.95
JogadoresClass · 0.90
PartidaClass · 0.90

Tested by

no test coverage detected