- CrazyEights.java - game logic, handles interaction with the deck, manages player turns, etc.
- Deck.java - represents a deck of 52 card objects
- Card.java - represents a card
- Hand.java - represents a players hand of card objects
There are also two files for controlling the actual game play (one for command based and one for GUI based.)
As we build out the Forth implementation of Crazy Eights we will map the components of these Java files to Forth files made up of words and variables which provide similar functionality.
To start with we built a Forth file called DECK.F which contains all card deck logic such as building the deck, shuffling the deck, and pulling the top card from the deck. Our next post will be specifically focused on our deck implementation of the in Forth.
No comments:
Post a Comment