Skip to content

Instantly share code, notes, and snippets.

View TimDorand's full-sized avatar

Timothée Dorand TimDorand

View GitHub Profile
<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'}
};
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];
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();