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()); }
public void HisMove(Move m) { w.OpponentTurn(m); }
private Move MakeMyTurn(Move move) { w.MyTurn(move); return move; }
public void OpponentTurn(Move move) { RegisterMove(opponent, me, move); }
public void MyTurn(Move move) { RegisterMove(me, opponent, move); }
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); }