scores
This commit is contained in:
parent
520a7f9c27
commit
f5a9281d78
|
@ -200,6 +200,12 @@ switch ($_POST['act']){
|
||||||
'strikeSymbol'=> $you,
|
'strikeSymbol'=> $you,
|
||||||
'log' => $you." ".$currentBotName." joue colonne ". $anwserPlayer." et a gagné"
|
'log' => $you." ".$currentBotName." joue colonne ". $anwserPlayer." et a gagné"
|
||||||
);
|
);
|
||||||
|
if($_SESSION['currentPlayer']==1){
|
||||||
|
save_battle('connectFou',$bot1['name'],$bot2['name'],1);
|
||||||
|
}else{
|
||||||
|
save_battle('connectFou',$bot1['name'],$bot2['name'],2);
|
||||||
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
$anwserToJS=array(
|
$anwserToJS=array(
|
||||||
'continue' => 1,
|
'continue' => 1,
|
||||||
|
@ -219,6 +225,11 @@ switch ($_POST['act']){
|
||||||
'strikeY' => -1,
|
'strikeY' => -1,
|
||||||
'log' => $you." ".$currentBotName." a fait une réponse non conforme, il perd"
|
'log' => $you." ".$currentBotName." a fait une réponse non conforme, il perd"
|
||||||
);
|
);
|
||||||
|
if($_SESSION['currentPlayer']==1){
|
||||||
|
save_battle('connectFou',$bot1['name'],$bot2['name'],2);
|
||||||
|
}else{
|
||||||
|
save_battle('connectFou',$bot1['name'],$bot2['name'],1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo json_encode($anwserToJS);
|
echo json_encode($anwserToJS);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user