From a722398b7cf12ceb53135921d060cf6585344346 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 13 Jun 2016 13:46:21 +0200 Subject: [PATCH] . --- connectfour.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/connectfour.php b/connectfour.php index baf3f91..7b5c5cb 100644 --- a/connectfour.php +++ b/connectfour.php @@ -71,6 +71,9 @@ function score($board,$me,$colToPlay){ if(strpos($searchValue,$line) > -1){ return 42; } + + + /* //diagonal / affin function like y=x+b b = parseInt(y - x); @@ -123,7 +126,8 @@ function better_col($board,$me){ return $i; } -$in=file_get_contents('php://input'); +$in=preg_replace('/""/','" "',file_get_contents('php://input'); +echo $in; $params=json_decode($in, TRUE); switch($params['action']){ case "init":