Skip to content

Commit

Permalink
mise en relation des entités #13
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeRenevierGonin committed Sep 27, 2022
1 parent 69bdcf5 commit 4f848de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/azul/Parties.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ public Parties() {
Joueur j2 = new Joueur("j2");
Joueur j3 = new Joueur("j3");

partie.ajouterJoueur(j1);
partie.ajouterJoueur(j2);
partie.ajouterJoueur(j3);

}

public static final void main(String [] args) {
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/azul/moteurdejeu/Azul.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
package azul.moteurdejeu;

import azul.joueur.Joueur;

import java.util.ArrayList;

public class Azul {
private ArrayList<Joueur> listeJoueurs;

public void ajouterJoueur(Joueur j) {
this.listeJoueurs.add(j);
}
}

0 comments on commit 4f848de

Please sign in to comment.