Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
poo2019numeric
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
steven.liatti
poo2019numeric
Commits
b7a3b2a8
Commit
b7a3b2a8
authored
5 years ago
by
steven.liatti
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
ssh://ssh.hesge.ch:10572/steven.liatti/poo2019numeric
parents
0a8d93ca
3f8b4fe7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+41
-3
41 additions, 3 deletions
README.md
with
41 additions
and
3 deletions
README.md
+
41
−
3
View file @
b7a3b2a8
...
...
@@ -8,11 +8,11 @@
-
Uniquement une abstraction + une implémentation avec liste ou tableau
-
L'abstraction doit avoir au moins deux méthodes par défaut (non statiques)
-
Corrigez le nom de la méthode
`exist`
en
`exists`
-
13.11.2019: Le rendu est bien le 1
5
novembre
-
13.11.2019: Le rendu est bien le 1
7
novembre
à 22h00
## Délais
-
1
5
novembre à 22h00: Rendu de la version 1 de votre TP (
`tag v1.0`
)
-
1
7
novembre à 22h00: Rendu de la version 1 de votre TP (
`tag v1.0`
)
-
Ensemble des fonctionnalités sur les vecteurs (package
`ch.hepia.numeric`
)
-
Deux fonctionnalités du pendu (package
`ch.hepia.hangman`
)
-
L'ensemble des fonctionnalités sur le tas binaire (package
`ch.hepia.strucure`
)
...
...
@@ -31,7 +31,7 @@ Après avoir choisi votre binôme, vous devrez **impérativement** :
-
Ajouter Joel Cavat (@joel.cavat), Jeremy Gobet (@jeremy.gobet) et Steven Liatti (@steven.liatti) en tant que
*Reporter*
de votre repository.
-
Lire attentivement l'énoncé.
# Itération 1 (tag `v1.0` -
22
novembre à 22h00)
# Itération 1 (tag `v1.0` -
17
novembre à 22h00)
## Fonctionnalités à réaliser sur les vecteurs
...
...
@@ -273,6 +273,44 @@ qui sera une alternative de `Vector.linespace(0.0, 5.0, 20)`.
## Fonctionnalités à réaliser sur le pendu
Modifiez le jeux pour une utilisation suivante :
```
java
Hangman h = Hangman.withSecretWord("mystere");
/
*
*
variante: Hangman h = Hangman.randomWord();
*
(choisit aléatoirement un mot dans une liste)
*
doit être implémenté !
*
/
String currentWord = h.currentWord(); // currentWord = "_______";
h = h.tryWith('h');
int attempts = h.attempts(); // attempts = 1
int failedAttempts = h.failedAttempts(); // attempts = 1
currentWord = h.currentWord(); // currentWord = "_______";
h.printGallowIfError(); // affiche la potence uniquement si le dernier essai est mauvais
h = h.tryWith('s');
attempts = h.attempts(); // attempts = 2
failedAttempts = h.failedAttempts(); // attempts = 1
currentWord = h.currentWord(); // currentWord = "____e_e";
h.printGallowIfError();
h.printGallow(); // affiche la potence même si aucune erreur
// Utilisation finale
while ( !h.isFinished() ) {
String letter = askLetter(); // demande une lettre à l'utilisateur
h = h.tryWith( letter );
h.printCurrentWord();
h.printGallowIfError();
}
if( h.hasWon() ) {
System.out.println("Bravo");
} else {
System.out.println("Failed");
}
```
## Fonctionnalités à réaliser sur les structures
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment