It looks good, but the computer is too easy. Played 3 games, and twice he moved his queen to front row of my pawns, and one game i managed to queen a pawn moving no other pieces except the pawn.
// Define database connection constants
define('DB_HOST', 'localhost');
define('DB_USER', 'username');//put in username
define('DB_PASSWORD', password');//put in password
define('DB_NAME', 'databaseName'); //put in DB name
//connect to database
$dbc =...
<?php
session_start();
//if the session vars aren't set, try to set them with a cookie
if (!isset($_SESSION['userID'])) {
if (isset($_COOKIE['userID']) && isset($_COOKIE['userName'])) {
$_SESSION['userID'] = $_COOKIE['userID']...