algolfier 4 years ago
commit d64f994757

2
.gitignore vendored

@ -0,0 +1,2 @@
*.vs

@ -1,11 +0,0 @@
{
"ExpandedNodes": [
"",
"\\SwichGIT",
"\\SwichGIT\\src",
"\\SwichGIT\\src\\css",
"\\SwichGIT\\src\\js"
],
"SelectedNode": "\\SwichGIT\\src\\css\\PartieGame.css",
"PreviewInSolutionExplorer": false
}

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

@ -1,10 +0,0 @@
{
"ExpandedNodes": [
"",
"\\src",
"\\src\\css",
"\\src\\js"
],
"SelectedNode": "\\src\\js\\main.js",
"PreviewInSolutionExplorer": false
}

Binary file not shown.

@ -40,12 +40,29 @@
color: var(--lightsedonca); color: var(--lightsedonca);
} }
#btnvalider3 {
position: relative;
text-align: center;
font-family: Montserrat, impact, Arial Black;
font-size: 2.5vw;
margin-top: 0.2vw;
margin-left: 0.2vw;
color: var(--lightsedonca);
}
#Redistribution2 { #Redistribution2 {
position: relative; position: relative;
top: -60%; top: -60%;
left:68%; left:68%;
} }
#Redistribution3 {
position: relative;
top: -60%;
left: 50%;
}
.bouttonvalider2:hover { .bouttonvalider2:hover {
box-shadow: 0 0 0 9px var(--lightsedonca); box-shadow: 0 0 0 9px var(--lightsedonca);
font-size: 120%; font-size: 120%;

@ -163,6 +163,15 @@
</div> </div>
</a> </a>
</div> </div>
<div id="Redistribution3">
<a id="relancerbtn" onclick="chercheCombi2()">
<div id="contourbuttonvalider">
<div class="bouttonvalider2">
<h1 id="btnvalider3">CHERCHER</h1>
</div>
</div>
</a>
</div>
<div class="logop2"> <div class="logop2">
<a onclick="journuit()"> <a onclick="journuit()">
<img src="imgs/swishjour.png" id="imglogo2"> <img src="imgs/swishjour.png" id="imglogo2">

@ -474,6 +474,47 @@ function creaMatrice(row, column) {
return myMatrice; return myMatrice;
} }
//=================================================================================
//chercheCombi => Compte les combinainsons de 2 cartes à l'écran
function chercheCombi2() {
var Cptsolution = 0;
for (var i = 0; i < 15; i++) {
for (var j = 0 ; j < 15 - i; j++) {
var DeckTeste = [];
var tab = [];
DeckTeste.push(deckPartie[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]);
var solution = true;
var tabCode = [];
for (var i = 0; i < tab.length; i++) {
tabCode.push(tab[i].code);
}
for (var i = 0; i < tab.length; i++) {
if (tab[i].code == carteselect.length) {
solution = false;
changerlesCartes();
}
}
if (solution) {
Cptsolution++;
window.alert("Combinaison : ", DeckTeste[i].getIdentifiant,DeckTeste[j].getIdentifiant);
}
}
}
window.alert("Nombre de solution a 2 cartes : ", Cptsolution);
}
//================================================================================= //=================================================================================
//FONCTION DE TEST => permet de tester des fonctionnalité via le bouton VALIDER //FONCTION DE TEST => permet de tester des fonctionnalité via le bouton VALIDER

Loading…
Cancel
Save