Class DeckViewScreen

java.lang.Object
javatro.display.screens.Screen
javatro.display.screens.DeckViewScreen

public class DeckViewScreen extends Screen
Displays the current deck composition in a formatted table view showing card distribution by suit and rank.

The table layout includes:

  • Rows for each suit (Spades, Hearts, Clubs, Diamonds)
  • Columns for each rank (A, K, Q, J, 10 through 2)
  • Suit totals in the rightmost column
  • Rank totals in the bottom row
  • Grand total in the bottom-right cell
  • Constructor Details

    • DeckViewScreen

      public DeckViewScreen() throws JavatroException
      Constructs a deck view screen with return option.
      Throws:
      JavatroException - if screen initialization fails
  • Method Details

    • displayScreen

      public void displayScreen()
      Displays the deck composition in a formatted table showing:
      • Card counts by suit and rank
      • Suit totals
      • Rank totals
      • Grand total count
      Specified by:
      displayScreen in class Screen