We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83f65bc commit 97dff1bCopy full SHA for 97dff1b
1 file changed
fase.py
@@ -40,11 +40,11 @@ def acabou(self, tempo):
40
return not self._existe_porco_ativo(tempo) or not self._existe_passaro_ativo(tempo)
41
42
def status(self, tempo):
43
+ if not self._existe_porco_ativo(tempo):
44
+ return 'Jogo em encerrado. Você ganhou!'
45
if self._existe_passaro_ativo(tempo):
46
return 'Jogo em andamento.'
- if self._existe_porco_ativo(tempo):
- return 'Jogo em encerrado. Você perdeu!'
47
- return 'Jogo em encerrado. Você ganhou!'
+ return 'Jogo em encerrado. Você perdeu!'
48
49
def lancar(self, angulo, tempo):
50
for passaro in self._passaros:
0 commit comments