Package pl.wroc.pwr.ligretto.game

Source Code of pl.wroc.pwr.ligretto.game.Game

package pl.wroc.pwr.ligretto.game;

import java.util.ArrayList;

import pl.wroc.pwr.ligretto.model.CardSet;
import pl.wroc.pwr.ligretto.model.Player;

public class Game {

  private CardSet cardSet;
  private ArrayList<Player> players;
 
  public Game() {
    cardSet = new CardSet();
    players = new ArrayList<Player>();
  }
 
  public static void main(String[] args) {
    Game game = new Game();
   
    Player player1 = new Player();
    Player player2 = new Player();
    Player player3 = new Player();
   
    game.addPlayer(player1);
    game.addPlayer(player2);
    game.addPlayer(player3);

    game.play();

  }
 
  public CardSet getCardSet() {
    return cardSet;
  }

  public ArrayList<Player> getPlayers() {
    return players;
  }

  public void play() {
    System.out.println("Welcome to Ligretto!");
  }

  public void addPlayer(Player player) {
    players.add(player);
   
  }
 
}
TOP

Related Classes of pl.wroc.pwr.ligretto.game.Game

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.