Beispiel #1
0
 static object naki(string type, int actor, int target, Pai pai, List<Pai> consumed)
 {
     consumed.Sort();
     return new { type = type, actor = actor, target = target, pai = pai.ToString(), consumed = consumed.Select(p => p.ToString()).ToList() };
 }
Beispiel #2
0
 public static object hora(int actor, int target, Pai pai)
 {
     return new { type = "hora", actor = actor, target = target, pai = pai.ToString() };
 }
Beispiel #3
0
 public static object dahai(int actor, Pai pai, bool tsumogiri)
 {
     return new { type = "dahai", actor = actor, pai = pai.ToString(), tsumogiri = tsumogiri };
 }
 public void onTsumo(int actor, Pai pai)
 {
     Console.WriteLine("onTsumo: actor = {0}, pai = {1}", actor.ToString(), pai.ToString());
     Console.WriteLine(Tehais[Id].Count);
     Tehais[actor].Add(pai);
     Console.WriteLine(Tehais[Id].Count);
 }