Example #1
0
        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();
        }
Example #2
0
        public static GameLogics GetInstance()
        {
            if (Instance == null)
            {
                Instance = new GameLogics();
            }

            return(Instance);
        }
Example #3
0
        public Player(int playerID, int ranking)
        {
            this.PlayerID = playerID;
            this.Field    = 0;
            this.Ranking  = ranking;

            Logics       = GameLogics.GetInstance();
            PlayNextTrun = true;
            Wait         = false;
            hasWon       = false;
        }