static void Main(string[] args) { var ws = new WebService(8002); var ms = new MainService(); int interval = 2500; var gs = ms.StartGame(); gs = ms.StartFirstRound(gs); update(ws, interval, gs); gs = ms.StartLicitation(gs); update(ws, interval, gs); gs = ms.Bet(gs, 0, 1000); update(ws, interval, gs); gs = ms.Bet(gs, 1, 2000); update(ws, interval, gs); gs = ms.Bet(gs, 2, 2200); update(ws, interval, gs); gs.Pool = 5000; gs = ms.EndLicitationToHint(gs); update(ws, interval, gs); gs = ms.StartLicitation(gs); update(ws, interval, gs); gs = ms.Bet(gs, 0, 300); update(ws, interval, gs); gs = ms.Bet(gs, 3, 400); update(ws, interval, gs); gs = ms.Bet(gs, 2, 500); update(ws, interval, gs); gs = ms.EndLicitationToBlackBox(gs); update(ws, interval, gs); }
private static void Main(string[] args) { var consoleService = new MainService(new FileService(), new LineService(), new ConsoleService()); consoleService.Run(); }