Beispiel #1
0
 public static void ResetBoard(Game game, FrmGame Frm)
 {
     for (int x = 0; x < game.board.Rows; x++)
     {
         for (int y = 0; y < game.board.Cols; y++)
         {
             game.board.LabelsPosition[x, y].ForeColor = Color.Black;
             game.board.LabelsPosition[x, y].Font      = new Font(game.board.LabelsPosition[x, y].Font, FontStyle.Regular);
         }
     }
     Frm.LblArrowP1_hide();
     Frm.LblArrowP2_hide();
     Frm.LblMessage_hide();
 }
Beispiel #2
0
        public static void LoadHeadings(Game game, FrmGame Frm)
        {
            Player p1 = game.Players[0];
            Player p2 = game.Players[1];

            string NameP1  = p1.Name;
            Color  ColorP1 = p1.GetPlayerColor();

            string NameP2  = p2.Name;
            Color  ColorP2 = p2.GetPlayerColor();

            Frm.LblPlayer1_update(NameP1, ColorP1);
            Frm.LblPlayer2_update(NameP2, ColorP2);
            Frm.LblPlayer1Wins_updateText(p1.Wins);
            Frm.LblPlayer2Wins_updateText(p2.Wins);
            Frm.LblPlayer1Wins_updateColor(ColorP1);
            Frm.LblPlayer2Wins_updateColor(ColorP2);

            Frm.LblMessage_update("", Color.Black);
            Frm.LblMessage_hide();
        }