-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGameStatus.cs
More file actions
30 lines (25 loc) · 783 Bytes
/
Copy pathGameStatus.cs
File metadata and controls
30 lines (25 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Runtime.Remoting.Messaging;
using System.Text;
using System.Threading.Tasks;
using ReversiLab.Rules;
namespace ReversiSharpClient
{
public class GameStatus
{
public List<List<int>> BoardState { get; set; }
public bool Cancelled { get; set; }
public int CurrentPlayer { get; set; }
public bool Started { get; set; }
public List<string> AvailableMoves { get; set; }
public ReversiLab.Rules.Game ToGame()
{
var game = new ReversiLab.Rules.Game();
game.CurrentPlayer = CurrentPlayer;
game.AvailableMoves = AvailableMoves;
game.BoardState = BoardState;
return game;
}
}
}