Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Killian
Pokemon battle simulator
Commits
3115aeed
Commit
3115aeed
authored
Feb 13, 2018
by
Quentin TONNEAU
Browse files
Update pokemon.ts
parent
fdfdcb30
Changes
1
Hide whitespace changes
Inline
Side-by-side
pokemon.ts
View file @
3115aeed
...
...
@@ -7,6 +7,9 @@ export interface Pokemon {
celerity
:
number
//vitesse d'attaque
}
/*
* Affiche le nom d'un pokémon avec ses points de vie
*/
export
function
display
(
p
:
Pokemon
)
:
string
{
return
p
.
name
+
'
(
'
+
p
.
health
+
'
)
'
;
}
...
...
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