private static Task PlayInBrowserExample() { var bots = new IBot[] { new RandomBot(), new RandomBot(), new RandomBot(), new RandomBot() }; return(BomberjamRunner.PlayInBrowser(bots)); }
private static Task PlayInBrowserExample(params IBot[] myBots) { var bots = new List <IBot>(); bots.AddRange(myBots); var missingBot = 4 - myBots.Length; for (int i = 0; i < missingBot; i++) { bots.Add(new RandomBot()); } return(BomberjamRunner.PlayInBrowser(bots.ToArray())); }