public class Rochambeau
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
PAPER |
static int |
ROCK |
static int |
SCISSORS |
Constructor and Description |
---|
Rochambeau() |
Modifier and Type | Method and Description |
---|---|
static int |
getWinner(int throw1,
int throw2)
Determine the winner, given two Rochambeau "throws".
|
public static final int ROCK
public static final int PAPER
public static final int SCISSORS
public static int getWinner(int throw1, int throw2)
throw1
- The throw of player 1, Must be 0, 1, or 2.throw2
- The throw of player 2, Must be 0, 1, or 2.