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

Create boardgame-card-stack #347

Open jkomoros opened 7 years ago

jkomoros commented 7 years ago

This will be the class that handles positioning of cards.

Different positioning styles:

Originally captured in #209

jkomoros commented 7 years ago
jkomoros commented 7 years ago

Should these be three different elements or one?

If it's one the different layouts will get confusing, but it will also be possible to animate between them by setting the display type

jkomoros commented 7 years ago

Sometimes a deck will actually have all cards instantiated, and sometimes it will only have fake cards to show that the deck has many items. (like a draw deck in monroe). Need a way to configure that

jkomoros commented 7 years ago

The collection should take a stack and optionally print out all of the elements themselves (but how would you pass the element to use for front of card?)

collection takes the stack, each card takes the expanded component