In addition, BorderLayout supports the relative positioning constants, PAGE_START, PAGE_END, LINE_START, and LINE_END. In a container whose ComponentOrientation is set to ComponentOrientation.LEFT_TO_RIGHT, these constants map to NORTH, SOUTH, WEST, and EAST, respectively.
Our initial design was intentionally restrictive and an oversimplified version of the Blackjack game: single player and a dealer, one deck, and no counting cards. The intention was to build a playable game and should be independent of our true goal of counting cards. We divided our code base into logical classes, analogous to their real-world representation. A Player has a Hand of multiple Cards drawn from a Deck of multiple Cards and a Dealer is a Player with extra responsibilities and functionality. Similar to our lab in class, with the Box class extending the JComponent, the Player and Card extended JPanel and JComponent respectively, enabling these classes to be used as an effective hybrid of model and view depending on their usage context. Once we accomplished our Phase 1 goal of a playable Blackjack game with a user-friendly GUI, we continued on to improve performance, modularity, and add our card counting feature.
And should I put anything in
7 THe Revised class Design
? because it’s just like 8.2 Final Design