Beispiel #1
0
        public void UpdatePlayersStats(GamePlayers i_GamePlayers)
        {
            for (uint i = 0; i < i_GamePlayers.Length; i++)
            {
                GamePlayer currPlayer = i_GamePlayers.Get(i);

                r_GameWindow.UpdatePlayerStat(i, currPlayer.Score);
            }
        }
Beispiel #2
0
        public bool ShouldRunAnotherGame(GamePlayers i_GamePlayers, GameResult i_LastGameResult)
        {
            string resultStr;
            string msgboxTitle;
            string msgboxText;

            if (i_LastGameResult.Result == GameResult.eResult.Draw)
            {
                resultStr   = "Tie!";
                msgboxTitle = "A Tie!";
            }
            else
            {
                resultStr   = string.Format("The winner is {0}!", i_GamePlayers.Get(i_LastGameResult.WinPlayerIndex).CellType.ToString());
                msgboxTitle = "A Win!";
            }

            msgboxText = string.Format("{0}{1}Would you like to play another round?", resultStr, Environment.NewLine);

            return(PromptQuestion(msgboxTitle, msgboxText));
        }