Skip to content

Instantly share code, notes, and snippets.

@TimDorand
Created April 15, 2016 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimDorand/dd219d68a1ef7f9d5ef98e4929bca8d1 to your computer and use it in GitHub Desktop.
Save TimDorand/dd219d68a1ef7f9d5ef98e4929bca8d1 to your computer and use it in GitHub Desktop.
private void initCartes(){
listeCartes = new Carte[nbCartes];
for (int i=0 ; i<nbCartes ; i++){
listeCartes[i] = new Carte("../Photos/carte"+i%(nbCartes>>1)+".png","../Photos/dos.png",i%(nbCartes>>1));
listeCartes[i].tournerVersDos();
}
melangeLesCartes();
afficherLesCartesAvecEvt();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment