The source is on the GitHub repository
Returns scores for moves.
Returns a JSON object mapping the column of the move (zero-based, so 0 is the left-most column and 6 is the right-most) to a score.
$ curl -s 'https://kevinalbs.com/connect4/back-end/index.php/getMoves?board_data=0000000000000000020000001200000210000021001012100&player=2' {"0":10,"1":10,"2":13,"3":13,"4":13,"5":12,"6":12}
Checks if a player has won. Only checks for a single piece.
$ curl -s 'https://kevinalbs.com/connect4/back-end/index.php/hasWon?board_data=0002000001102000222100012220002111000122100012110&player=2&i=3&j=3' true