Skip to content
darkfriend77 edited this page Jan 19, 2017 · 3 revisions

Welcome to the SabberStone wiki!

Quick Game

... create a Game ...

var game = new Game(new GameConfig
{
	StartPlayer = 1,
	Player1HeroClass = CardClass.SHAMAN,
	Player2HeroClass = CardClass.SHAMAN,
	FillDecks = true
});

... start ...

	game.StartGame();

... play ... random moves ...

for(var i = 0; i < turns; i++)
{
	var options = game.Options(game.CurrentPlayer);
        var option = options[rnd.Next(options.Count)];
        game.Process(option);
}

... play ... specific moves ...

	game.Process(PlayCardTask.Minion(game.CurrentPlayer, minion));
        game.Process(EndTurnTask.Any(game.CurrentPlayer));