i've been trying to use firebase to create a simple 2 player generic trading card game player. however, i'm finding myself stuck on the client/server logic.
i want the interfaces of the 2 players to display the board from their perspective (like you'd see on MTGO).
in my pseudo coding, i've been toying with the following client-side logic:
opponent.on("change-in-hand-or-board)",function(){
renderChangesInMyClient();
})
this makes sense to me logically, but i can't seem to translate the idea to code. specifically, what are best practices for storing and displaying two different perspectives on the same "board"?
