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
3ab09f4c
Commit
3ab09f4c
authored
Feb 12, 2018
by
Quentin
Browse files
add main example
parent
12e1fcea
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.ts
0 → 100644
View file @
3ab09f4c
/**
* Main file
* X12I040 - Introduction au développement logiciel
* Quentin Tonneau - 2018
*/
import
*
as
Pokedex
from
"
./pokedex
"
import
{
Player
}
from
"
./player
"
;
import
{
battle
}
from
"
./battle
"
;
//Déclaration de trois joueurs
let
sacha
:
Player
=
{
name
:
"
Sacha
"
,
pokemons
:
[
Pokedex
.
Bulbizare
,
Pokedex
.
Empiflor
,
Pokedex
.
Ortide
]};
let
regis
:
Player
=
{
name
:
"
Régis
"
,
pokemons
:
[
Pokedex
.
Salameche
,
Pokedex
.
Goupix
,
Pokedex
.
Pyroli
]};
let
jessie
:
Player
=
{
name
:
"
Jessie
"
,
pokemons
:
[
Pokedex
.
Carapuce
,
Pokedex
.
Krabby
,
Pokedex
.
Tentacool
]};
battle
(
sacha
,
jessie
);
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