jkomoros / boardgame

An in-progress framework in golang to easily build boardgame Progressive Web Apps
Apache License 2.0
31 stars 4 forks source link

An easy pattern to include Player Names / Avatars in client rendering #748

Open jkomoros opened 4 years ago

jkomoros commented 4 years ago

In a lot of games it's not immediately clear which hand of cards belongs to which player; the correspondence is primarily by looking at the player roster above and seeing which one matches up.

There should be a local component clients can use that takes a PlayerIndex and then shows the right avatar and/or name for that player

jkomoros commented 4 years ago

Should the core game logic be able to inspect the player name, or is it only a client databinding thing? ... Probably the latter. No need for it, really.