Click here to Skip to main content
13,045,019 members (42,011 online)
Click here to Skip to main content

Stats

18K views
17 bookmarked
Posted 12 May 2009

Reversi for Windows Mobile

, 12 May 2009
The game Reversi for Windows Mobile using the Compact Framework.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace GameExample.Reversi
{
    public class GameState
    {
        public static GameState Create(int width, int height)
        {
            GameState state = new GameState();
            state.BoardData = new Board(width, height);
            state.CurrentPlayer = Player.PlayerOne;
            return state;
        }

        public Board BoardData { get; set; }
        public Player CurrentPlayer { get; set; }
    }
}

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)

Share

About the Author

Ziad Elmalki
United States United States
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 13 May 2009
Article Copyright 2009 by Ziad Elmalki
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid