|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.