-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGame.java
More file actions
26 lines (24 loc) · 693 Bytes
/
Game.java
File metadata and controls
26 lines (24 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//imports for network communication
import java.util.ArrayList;
import java.awt.Graphics;
import java.awt.Color;
import java.awt.Font;
class Game {
final static int WAITING = 0;
final static int GAME_RUNNING = 1;
private ArrayList<Card> deck;
private ArrayList<Card> discardPile;
private ArrayList<Card> playedCards;
private int currentPlayer;
private int status;
private ArrayList<Player> players;
Game(){
deck = new ArrayList<Card>();
discardPile = new ArrayList<Card>();
playedCards = new ArrayList<Card>();
playedCards.add(new SkipCard("cardone","1"));
int currentPlayer = 0;
int status = WAITING;
players = new ArrayList<Player>();
}
}