//Solo public GameChessViewModel() { List <IPlayer> playerList = new List <IPlayer>(); playerList.Add(new PlayerModel("Test1", PawColors.White)); playerList.Add(new PlayerModel("Test2", PawColors.Black)); var game = new ChessGameCreator().StandardGame(playerList, Alert, PawnUpgradeWindow); base.Load(game); }
public static IChessGame SetChessGame() { List <IPlayer> playerList = new List <IPlayer>(); playerList.Add(new PlayerModel { Color = PawColors.White, ID = 1, Name = "Test1" }); playerList.Add(new PlayerModel { Color = PawColors.Black, ID = 2, Name = "Test2" }); IChessGame game = new ChessGameCreator().StandardGame(playerList, null, null); return(game); }