LCCC Course CIS 210 - Java Programming

Program 8 - HighCard class based on the SwingTemplate application

Based upon your instructor's lecture, you will write a class that models a High Card game where two cards are dealt from a deck to the "table." The winner is the player with the highest card. A button will be used to "play" the game again. The program will have the following specifications:

  1. appropriate commenting and indenting
  2. fields
    • all necessary graphical & UI components (JFrame, JPanel, etc) from SwingTemplate
    • cardOnTable1 and cardOnTable2
    • myDeck
    • cardButton1 and cardButton2
    • playButton
    • winnerTextField
  3. methods
    • all necessary methods to create & instantiate graphical & UI components (i.e. main, constructor, actionPeformed, etc)
    • any additional methods that may help fulfil the games specifications

 

 

www.lc.edu

Last Updated: January, 2011