Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tanguy Duvignac
formation
Commits
f8780ede
Commit
f8780ede
authored
Nov 11, 2020
by
Sarlat Thibaud
Browse files
Modification de l'affichage
parent
13fac8fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.py
View file @
f8780ede
...
...
@@ -57,11 +57,11 @@ class IO:
def
print_action
(
self
,
attacker
,
defenser
,
action
):
self
.
step
+=
1
print
(
f
'=== Tour
{
self
.
step
}
==='
)
if
action
[
0
]
==
'A'
:
if
action
[
0
]
==
Action
.
Attaque
:
print
(
f
'
\t
{
attacker
.
name
}
attaque.
\n
'
f
'
\t
{
defenser
.
name
}
subit
{
action
[
1
]
}
dégat'
f
'
\t
Il reste
{
defenser
.
health
}
à
{
defenser
.
name
}
'
)
elif
action
[
0
]
==
'S'
:
elif
action
[
0
]
==
Action
.
Se_soigner
:
print
(
f
'
\t
{
attacker
.
name
}
se soigne de
{
action
[
1
]
}
'
)
def
get_action
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment