Package javatro.display.screens
Class DeckViewScreen
java.lang.Object
javatro.display.screens.Screen
javatro.display.screens.DeckViewScreen
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
-
Field Summary
Fields inherited from class javatro.display.screens.Screen
commandMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisplays the deck composition in a formatted table showing: Card counts by suit and rank Suit totals Rank totals Grand total countMethods inherited from class javatro.display.screens.Screen
clearCommandMap, displayOptions, getCommand, getCommandMap, getOptionsSize, getOutput
-
Constructor Details
-
DeckViewScreen
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:
displayScreenin classScreen
-