public AIController(PlatformClient client, Strategy strategy = null) : base(client) { MahjongHelper.getInstance(); this.strategy = strategy ?? new Strategy(); evalResultComp = new EvalResultComp(this); chiitoitsuTileComp = new ChiitoitsuTileComp(this); }
static void SelfCheck(Config config) { try { MahjongHelper.getInstance(); if (config.Platform == Platform.Majsoul) { new MajsoulHelper(); } } catch (Exception ex) { Console.Error.WriteLine(ex.Message); Console.ReadKey(); Environment.Exit(2); } }
private int calcPoint(Tile lastTile, bool riichi = true, bool tsumoAgari = false, bool isLastTile = false) { return(MahjongHelper.getInstance().calcPoint(player.hand, lastTile, gameData.direction, player.direction, player.fuuro, gameData.dora, riichi && player.fuuro.VisibleCount == 0, tsumoAgari && player.fuuro.VisibleCount == 0, isLastTile)); }
private int calcDistance(out int normalDistance) { return(MahjongHelper.getInstance().calcDistance(player.hand, player.fuuro.Count, out normalDistance)); }