public class GinRummyGame
extends java.lang.Object
| Constructor and Description |
|---|
GinRummyGame(GinRummyPlayer player0,
GinRummyPlayer player1)
Create a GinRummyGame with two given players
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Test and demonstrate the use of the GinRummyGame class.
|
int |
play()
Play a game of Gin Rummy and return the winning player number 0 or 1.
|
static void |
setPlayVerbose(boolean playVerbose)
Set whether or not there is to be printed output during gameplay.
|
public GinRummyGame(GinRummyPlayer player0, GinRummyPlayer player1)
player0 - Player 0player1 - Player 1public static void setPlayVerbose(boolean playVerbose)
playVerbose - whether or not there is to be printed output during gameplaypublic int play()
public static void main(java.lang.String[] args)
args - (unused)