Click here to Skip to main content
15,891,762 members
Articles / Desktop Programming / Windows Forms

Calcoolation: A Math Puzzle Board Game

Rate me:
Please Sign up or sign in to vote.
5.00/5 (23 votes)
6 Aug 2009CPOL5 min read 120.9K   2.9K   53  
Demo for a math puzzle board game
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Calcoolation.Core
{
    /// <summary>
    /// Represents the cells insice the game board.
    /// </summary>
    public class Cell
    {
        #region attributes
        string cellValue;
        string cellValidValues;
        int userValue = 0;
        Cage cage = null;
        int column;
        int row;
        #endregion attributes

        #region constructor
        public Cell()
        {
        }
        #endregion constructor

        #region properties
        public string CellValue
        {
            get { return cellValue; }
            set { cellValue = value; }
        }

        public string CellValidValues
        {
            get { return cellValidValues; }
            set { cellValidValues = value; }
        }

        public Cage Cage
        {
            get { return cage; }
            set { cage = value; }
        }

        public int Column
        {
            get { return column; }
            set { column = value; }
        }

        public int Row
        {
            get { return row; }
            set { row = value; }
        }

        public int UserValue
        {
            get { return userValue; }
            set { userValue = value; }
        }
        #endregion properties
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Instructor / Trainer Alura Cursos Online
Brazil Brazil

Comments and Discussions