This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script> | |
<script> | |
function initialize() { | |
var input = document.getElementById('searchTextField'); | |
var options = { | |
types: ['geocode'], | |
types: ['(regions)'], | |
componentRestrictions: {country: 'fr'} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void melangeLesCartes() | |
{ | |
for (int i = 0 ; i < nbCartes ; i++ ){ | |
// On met un valeur aléatoire dans v | |
int v = (int) (Math.random() * nbCartes); | |
// On stocke la valeur alea dans une valeur temporaire | |
Carte temp = listeCartes[i]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
NewerOlder