Exemple #1
0
 private static void WriteMove(Move m)
 {
     OutLine(m.card_to_slot ? "1" : "2");
     OutLine(m.card_to_slot ? m.card.ToString() : m.slot.ToString());
     OutLine(m.card_to_slot ? m.slot.ToString() : m.card.ToString());
 }
Exemple #2
0
 public void HisMove(Move m)
 {
     w.OpponentTurn(m);
 }
Exemple #3
0
 private Move MakeMyTurn(Move move)
 {
     w.MyTurn(move);
     return move;
 }
Exemple #4
0
 public void OpponentTurn(Move move)
 {
     RegisterMove(opponent, me, move);
 }
Exemple #5
0
 public void MyTurn(Move move)
 {
     RegisterMove(me, opponent, move);
 }
Exemple #6
0
 public static void RegisterMove(Slot[] me, Slot[] opponent, Move move)
 {
     if (move.slot < 0 || move.slot > 255) return;
     if (move.card_to_slot)
         Apply(me, opponent, move.card, me[move.slot].value, move.slot);
     else
         Apply(me, opponent, me[move.slot].value, move.card, move.slot);
 }