Chess Game With AI - PHP Script

Chess Game With AI - PHP Script

Screenshots

Overview

This product is built for PHP/MySQL web developers, who are passionate about creating a Chess game for online playing.

Demo here!

There are 4 options: Play with friend, Play with AI, Play in room and Set up the board

  1. Play with friend: Players press on the button "PLAY WITH FRIEND" on the front page and practice with friend.
  2. Play with AI: Players play directly on the front page. There are 4 levels: Newbie, Easy, Normal, and Hard.
  3. Play in room: Players press on the button "HOST A ROOM", host a new room with random Room code, and create a password for you and your friend, also capable of Inviting friend to play by sending the link. Players can also access the page "Rooms" to enter a hosted room. Players can choose White Side or Black Side, White moves first.
  4. Set up the board: Players press on the link "Set Up". In this option, players can arrange the chess pieces and press "CAPTURE THE BOARD" to challenge friends.

Features

  • AI feature with 4 levels: Newbie, Easy, Normal, and Hard. The AI is based on Minimax Alpha Beta algorithm.
  • Hosting Room feature: user can host new room with a password.
  • Set up board with Board Capture.
  • Share Board feature: user can Share the board with others.

Requirements

Server Requirements:

  • PHP >= 7.2.5
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Download