public static object dahai(int actor, int pai, bool tsumogiri) { return(new { type = "dahai", actor = actor, pai = Pai.dump(pai), tsumogiri = tsumogiri }); }
static object naki(string type, int actor, int target, int pai, List <int> consumed) { consumed.Sort(); return(new { type = type, actor = actor, target = target, pai = Pai.dump(pai), consumed = consumed.Select(Pai.dump).ToList() }); }
public static object hora(int actor, int target, int pai) { return(new { type = "hora", actor = actor, target = target, pai = Pai.dump(pai) }); }