Click here to Skip to main content
15,896,359 members
Articles / Mobile Apps / Windows Phone 7

Windows Phone 7 Calcoolation

Rate me:
Please Sign up or sign in to vote.
4.96/5 (46 votes)
16 May 2011CPOL7 min read 94.6K   1.2K   51  
Math-based, sudoku-like game for Windows Phone 7
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WP7Calcoolation.Core
{
    /// <summary>
    /// Represents a (X, y) pair of coordinates.
    /// </summary>
    public class Point
    {
        #region attributes
        int x = 0;
        int y = 0;
        #endregion attributes

        #region constructor
        public Point(int x, int y)
        {
            this.x = x;
            this.y = y;
        }
        #endregion constructor

        #region methods
        public override bool Equals(object obj)
        {
            Point p = (Point)obj;
            return (p.X == this.X && p.Y == this.Y);
        }
        #endregion methods

        #region properties
        public int X { get { return x; } }
        public int Y { get { return y; } }
        #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