Billy Tries to make a treatise on current situation - conorthbrennan/Flapples_MVP GitHub Wiki
you have
- Board
- Card
- Deck
- Goal
- Player
- Possessions
so I guess that this is:
Who has stuff
-- the Game ={ goals, rules // Is a Goal a type of Rule that governs Winning?
// Board = Game ?
-- Players -- Player p1 ={ holdingPen, hand
some methods:
- initialize: cards put into Deck, shuffled, and dealt ( .deal() = .draw() ? )
- c.draw: card taken from Deck, put into p1.Hand
- c.play: card that was in p1.Hand is now in Game.In_Play .
also, individual card's c.play() method is run. also there is a REPLACING behavior: upon receiving a new card, an Officer (Goalie, Rulie, Holdie) will discard the old card. - c.discard: you can discard from the hand & from the holdingPen if you have holding limits in play. replaced cards get discarded as well. sent to discard pile)
And some final things, necessary for gameplay:
- Deck.view: for any Deck -derived object, you must be able to display the contents thereof
- p1.choose: from p1.holdingPen or p1.hand, this prompts user to choose one card (usually to discard)
we still haven't understood how goal-evaluation occurs, or exactly how rules are enforced.