Exemplo n.º 1
0
 public MemoryGameLogic(MemoryGameSettings i_Settings)
 {
     r_Player1     = new Player(i_Settings.Player1Name, false);
     r_Player2     = new Player(i_Settings.Player2Name, !i_Settings.AgainstFriend);
     r_Board       = new Board(i_Settings.NumbeOfBoardRows, i_Settings.NumbeOfBoardColumns);
     r_UnseenCards = new List <Card>();
     r_SeenCards   = new List <Card>();
     r_LegalCards  = new List <Card>();
     BuildShuffledBoard();
 }
Exemplo n.º 2
0
 public SettingsForm()
 {
     InitializeComponent();
     r_Settings   = new MemoryGameSettings();
     r_BoardSizes = new List <Tuple <int, int> >();
     r_BoardSizes.Add(new Tuple <int, int>(4, 4));
     r_BoardSizes.Add(new Tuple <int, int>(4, 5));
     r_BoardSizes.Add(new Tuple <int, int>(4, 6));
     r_BoardSizes.Add(new Tuple <int, int>(5, 4));
     r_BoardSizes.Add(new Tuple <int, int>(5, 6));
     r_BoardSizes.Add(new Tuple <int, int>(6, 4));
     r_BoardSizes.Add(new Tuple <int, int>(6, 5));
     r_BoardSizes.Add(new Tuple <int, int>(6, 6));
     m_CurrentIndexOfBoardSize = 1;
     this.ShowDialog();
 }