Community Chess

Community Chess Used AI

9 devlogs
17h 7m
Created by sloebre

A website where all players vote for the next move on the chessboard.

Timeline

Working on the chess engine, in order to code the checkmate logic i first need to code a function to get all the valid moves, i am adapting my isMoveValid() function for this. I also did some debugging of the firebase because it wasn't behaving as i would have liked.

Update attachment

It has been a while. I have been locked in trying to fix all the problems that where popping up everywhere. I finally got the user voting to work. I did a major redesign and i am currently working on hooking up stockfish to my app.

Update attachment

Finally got the firebase database working and successfully syncing between clients. I can finally go to sleep now. 😴:/ It's 3 in the morning. This is the first and probably last time i will use firebase ... But yeah, goodnight.

Update attachment

Frustrating errors while trying to deploy the server side AI. This is my first time using any kind of database. Very frustrating :/ But errors are finite, so eventually we will get there 💪

Update attachment

Moved all game logic to the firebase database, this was my first time working with firebase, or any kind of database so it was a bit difficult at first but i figured it out eventually. So now i should finish the chess game logic and improve the voting ability and add some sort of AI opponent.

Update attachment

I made the mistake of writing all the gamelogic using the dom as a source of truth. So i will be rewriting all of that so the dom only is a visualisation of the gamestate. This will also make it easier to implement the realtime database.

Update attachment

Added the pieces, and very very basic movement for the pawns, i am still working on making the other pieces move. But i am gonna catch some sleep before i finish those.

Update attachment

Created a basic voting system, next i will be working on the chess functionality, i will have to find png's for the pieces and code the game logic. After that we can try to connect it to firebase for the server functionality.

Update attachment

Create a simple dynamically generate chessboard

Update attachment