Here is my plan as of how to develop a code which can be used to play game of chess on a webserver .
I am trying to develop this piece of code for correspondence chess.
I know the basics of JS and made this a hobby project in order to learn some more details of js.
Few things about the code.
code at present, just displays the board with pieces and on clicking on the board, displays the id.
I have also created an 2d array for the board as later on I want all the data to be fed to my database.
There are two difficuties for me:
1.) is is there any way by which I can integrate html,css and js such that I can use the array to place the pieces on the GUI.
2.)How can I make these pieces movable.(Once I am able to move the pieces, then I can start coding the legal moves,at this point I just want to change the position of pieces by clicking them and then on a square and then this entry must be redirected to array to get the latest position.)