示例#1
0
        static void test2()
        {
            var point = MahjongHelper.getInstance().calcPoint(new Hand()
            {
                new Tile(0), new Tile(4), new Tile(8),
                new Tile(36), new Tile(40), new Tile(44),
                new Tile(48), new Tile(52), new Tile(56),
                new Tile(96), new Tile(100), new Tile(104),
                new Tile(124), new Tile(125)
            }, new Tile(40), Direction.E, Direction.E, new Fuuro(), new Dora {
                new Tile(68)
            }, false);

            Console.WriteLine(point);
            Console.ReadKey();
        }
示例#2
0
 private int calcDistance(out int normalDistance)
 {
     return(MahjongHelper.getInstance().calcDistance(player.hand, player.fuuro.Count, out normalDistance));
 }
示例#3
0
 private int calcPoint(Tile lastTile, bool riichi = true)
 {
     return(MahjongHelper.getInstance().calcPoint(player.hand, lastTile, gameData.direction, player.direction, player.fuuro, gameData.dora, riichi && player.fuuro.VisibleCount == 0));
 }
示例#4
0
 public AIController(TenhouClient client) : base(client)
 {
     MahjongHelper.getInstance();
 }