Golfier
theo 4 years ago
parent 72d25949bb
commit cf70648dfc

Binary file not shown.

@ -478,23 +478,22 @@ function creaMatrice(row, column) {
//=================================================================================
//chercheCombi => Compte les combinainsons de 2 cartes à l'écran
function chercheCombi2() {
/*
var Cptsolution = 0;
for (i = 0; i < 15; i++) {
var Cptsolution = 0;
for (var i = 0; i < 15; i++) {
for (j = 0 j < 15 - i; j++) {
for (var j = 0 ; j < 15 - i; j++) {
var DeckTeste = [];
var tab = [];
DeckTeste.push(deckPartie[i]);
DeckTeste.push(deckPartie[j + i]);
DeckTeste.push(deckPartie[j+i]);
var copie = [];
for (var i = 0; i < DeckTeste.length; i++) {
window.alert(DeckTeste.length);
copie.push(DeckTeste[i]);
}
//tab = AssemblageARBRE(copieListeDeCarte(copie), DeckTeste[0]);
tab = AssemblageARBRE(copieListeDeCarte(copie), DeckTeste[0]);
var solution = true;
var tabCode = [];
for (var i = 0; i < tab.length; i++) {
@ -508,13 +507,12 @@ function chercheCombi2() {
}
if (solution) {
Cptsolution++;
window.alert("Combinaison : ", DeckTeste[i].identifiant, DeckTeste[j].identifiant);
window.alert("Combinaison : ", DeckTeste[i].getIdentifiant,DeckTeste[j].getIdentifiant);
}
}
}
window.alert("Nombre de solution a 2 cartes : ", Cptsolution);
*/
}
//=================================================================================

Loading…
Cancel
Save