I am currently making an online multiplayer chess game. I was wondering if it was appropriate for user triggers to register in every movement.
Then, using nodejs, I periodically repeat the trigger table and update the visual image for both players and observers.
Since I only need to make changes to the database, the visual aspect will be automatically executed (using the repeating function to check the changed data in the database). The goal of this would be to separate visual effects from the logic involved in the game.
Can any of you recommend this technique or just wonβt leave?
source share