Commit 3115aeed authored by Quentin TONNEAU's avatar Quentin TONNEAU
Browse files

Update pokemon.ts

parent fdfdcb30
......@@ -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+')';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment