cytoffin 4 years ago
parent 00eb3aa1f4
commit 4d1b94d6c4

@ -2,7 +2,7 @@
/shelf/
/workspace.xml
# Datasource local storage ignored files
/../../../../../../../../:\Users\User\swish\SwichGIT\SwishMulti\Prototype\.idea/dataSources/
/../../../../../:\wamp64\www\Prototype\.idea/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="mysqlitedb" uuid="c0187b2b-b8fe-4f13-a0ec-505670256d89">
<driver-ref>sqlite.xerial</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
<jdbc-url>jdbc:sqlite:C:\Users\User\swish\SwichGIT\SwishMulti\Prototype\mysqlitedb.db</jdbc-url>
<working-dir>$ProjectFileDir$</working-dir>
</data-source>
</component>
</project>

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PublishConfigData" serverName="coucou">
<serverData>
<paths name="coucou">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="Prototype" />
</mappings>
</serverdata>
</paths>
<paths name="ouaouai">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
</serverData>
</component>
</project>

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
</component>
</project>

@ -11,14 +11,13 @@ $idpartie = $_SESSION['idpartie'];
for ($i = 1; $i <= 16; $i++) {
$valcol1= substr($cartes[i],7);
$valcol1= $cartes[$i][0];
print_r($valcol1);
$valcol2= $cartes[$i][1];
print_r($valcol2);
$valcol3= $cartes[$i][2];
print_r($valcol3);
$update = $db->query('UPDATE partieCartes SET "colUn" = "'.$valcol1.'","colDeux"="'.$valcol2.'","colTrois"="'.$valcol3.'" where Id="'.$idpartie.'" ');
$valcol2= substr($cartes[i],7,14);
$valcol3= substr($cartes[i],-7);
$update = $db->query('UPDATE partieCartes SET "colUn" = "Salut","colDeux"="je veux","colTrois"="'.$valcol3.'" where Id="'.$idpartie.'" ');
}
print_r($cartes);

@ -603,11 +603,8 @@ echo "<h2 id='ids'>Identifiant partie : <strong>$idpartie</strong></h2>";
if(isset($_SESSION['cartestables'])){
$cartestable = $_SESSION['cartestables'];
//print_r($cartestable);
print_r($cartestable);
}
?>
<div id="containpseudo">

@ -13,7 +13,7 @@ var TasDuJEU = []; // Ensemble de toutes les cartes presente dans le jeu
var lesPoints = 0; //Points du Joueur1
var listecartes = [];//Envoie les cae=rtes
@ -394,33 +394,14 @@ function genererTouteslesCartes3_4Possibles() {
}
}
$(document).ready(function(){
var cartestables = deckPartie;
$.ajax({
data: {
cartestables:cartestables
},
type: "post",
url: "envoyercartes.php",
success: function(data){
alert(data)
}
});
});
return deckPartie;
}
function passageData() {
var matrice = [];
for (var i=0 ; i<deckPartie.length ; i++) {
matrice.push(deckPartie[i].getMatrice);
}
$(document).ready(function(){
var cartestables = matrice;
var cartestables =listecartes;
$.ajax({
data: {
@ -429,13 +410,11 @@ function passageData() {
type: "post",
url: "envoyercartes.php",
success: function(data){
alert(data)
alert("Je suis passe")
}
});
});
console.log(matrice);
return matrice;
}
function afficherCartes(Liste) {
@ -484,6 +463,35 @@ function creePartieClassique() {
deckPartie.push(copieCarte(TasDuJEU[index]));
}
afficherCartes(deckPartie);
for (var i=0 ; i < deckPartie.length ; i++) {
var ajt = deckPartie[i].getMatrice[0]+deckPartie[i].getMatrice[1]+deckPartie[i].getMatrice[2]
listecartes.push(ajt)
console.log(i)
}
console.log(listecartes);
console.log("Coucou")
$(document).ready(function(){
var cartestables = listecartes;
$.ajax({
data: {
cartestables:cartestables
},
type: "post",
url: "envoyercartes.php",
success: function(data){
alert("Je suis passe")
}
});
});
}
function creePartieInfini() {

Loading…
Cancel
Save