nathsten / Chess-multiplayer-and-AI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiplayer chess game and AI

  • Using Socket.io with postgreSQL DB to create a real time multiplayer chess game.

  • Each game is store with a gamepin, and can be accessed as long as role cookie is set.

  • Play locally on you computer, 1v1.
  • Attempt to create an AI using tensorflow.js to play the chess game against you.

Gameplay

  • A single string like this: "br,18/bk,28/bb,38/bQ,48/bK,58/bb,68/bk,78/br,88/bp,17/bp,27/bp,37/bp,47/bp,57/bp,67/bp,77/bp,87/wr,11/wk,21/wb,31/wQ,41/wK,51/wb,61/wk,71/wr,81/wp,12/wp,22/wp,32/wp,42/wp,52/wp,62/wp,72/wp,82" will result in a chess board like this:

chessboard

  • Each part of the string (separated by "/") represents color, type of brick, position x and position y. br,18 = black rook x = 1, y = 8.

About


Languages

Language:JavaScript 75.3%Language:CSS 14.7%Language:HTML 9.2%Language:Handlebars 0.8%