This week I have been working on finalizing the web application that will sending and receiving moves to and fro the Raspberry Pi on the gantry. I initially ran into some trouble with getting the board state to sync across multiple open webpages, but this ultimately turned out to be an issue with the instances of the chessboard. On loading the webpage a new chessboard was initialized instead of being stored in a database which didn’t allow other pages to access its data. Now we are storing the chessboard data in the database and updating the board via the instance stored in the database allowing multiple webpages to maintain identical board states.
This week I plan to finish the web application and test it with the Raspberry Pi on the gantry.