public Bord() { Console.WriteLine("this is the CLIENT console" + Environment.NewLine); InitializeComponent(); gameLogics = GameLogics.GetInstance(); ranking = new PlayerRanking(); pictures = new List <PictureBox>(); generatePictureList(); firstTurn = true; RulesBox.Visible = false; howManyPlayersLabel.Visible = false; playerNameLabel.Visible = false; twoPlayerGameButton.Visible = false; threePlayerGameButton.Visible = false; fourPlayerGameButton.Visible = false; waitForAllPlayersLabel.Visible = false; rulesButton.Visible = false; beurtInfoLabel.Visible = false; startGameButton.Visible = false; SendAllPicturesToBack(); client = new ClientGanzenbord(); client.makeConnectionWithTheServer(); }
public static GameLogics GetInstance() { if (Instance == null) { Instance = new GameLogics(); } return(Instance); }
public Player(int playerID, int ranking) { this.PlayerID = playerID; this.Field = 0; this.Ranking = ranking; Logics = GameLogics.GetInstance(); PlayNextTrun = true; Wait = false; hasWon = false; }