Ejemplo n.º 1
0
 public PlayerStat(IBoardSize boardSize, IDifficulty difficulty)
 {
     BoardSize  = boardSize.Name;
     Difficulty = difficulty.Name;
     UID        = generateID();
     Time.Start();
 }
Ejemplo n.º 2
0
        public void TestCreateRectangle()
        {
            IBoardSize bs = BoardSizeFactory.CreateRectangleBoard();

            Assert.AreEqual(8, bs.Height);
            Assert.AreEqual(10, bs.Width);
        }
Ejemplo n.º 3
0
        public void TestCreateLarge()
        {
            IBoardSize bs = BoardSizeFactory.CreateLargeBoard();

            Assert.AreEqual(12, bs.Height);
            Assert.AreEqual(12, bs.Width);
        }
Ejemplo n.º 4
0
        public void TestCreateBig()
        {
            IBoardSize bs = BoardSizeFactory.CreateBigBoard();

            Assert.AreEqual(10, bs.Height);
            Assert.AreEqual(10, bs.Width);
        }
Ejemplo n.º 5
0
        public void TestCreateStandard()
        {
            IBoardSize bs = BoardSizeFactory.CreateStandardBoard();

            Assert.AreEqual(8, bs.Height);
            Assert.AreEqual(8, bs.Width);
        }
 public MinesweeperGame(IBoardSize size, IDifficulty difficulty) : base(size, difficulty)
 {
 }
 private void LargeRadioButton_CheckedChanged(object sender, EventArgs e)
 {
     BoardSize = new LargeBoard();
 }
 private void MedRadioButton_CheckedChanged(object sender, EventArgs e)
 {
     BoardSize = new MedBoard();
 }
 private void SmallRadioButton_CheckedChanged(object sender, EventArgs e)
 {
     BoardSize = new SmallBoard();
 }
Ejemplo n.º 10
0
 public GameBoard(IBoardSize size, IDifficulty difficulty)
 {
     BoardSize  = size;
     Difficulty = difficulty;
 }