Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

supermetalmons/mons-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotnet add package MonsGame

using MonsGame;

var game = new Game();
var suggestedInputsOutput = game.ProcessInput(new List<Input>());

var location1Input = new Input.LocationInput(new Location(0, 0));
var location2Input = new Input.LocationInput(new Location(1, 1));
var modifierInput = new Input.ModifierInput(Modifier.SelectPotion);
var inputs = new List<Input> { location1Input, location2Input, modifierInput };
var output = game.ProcessInput(inputs);

var location = new Location(4, 4);
var square = game.Board.SquareAt(location);
var item = game.Board.GetItem(location);

var activeColor = game.ActiveColor;
var remainingMonsMovesCount = game.AvailableMoveKinds[AvailableMoveKind.MonMove];
var winnerColor = game.WinnerColor();

var fen = game.Fen;
var anotherGame = Game.FromFen(fen);
var boardSize = Config.BoardSize;