public CaravanAI(CaravanBoard board) { this.board = board; this.turnNumber = 0; }
void Start() { board = this.GetComponent<CaravanBoard>(); }
public void execute(CaravanBoard board) { //UnityEngine.Debug.Log(this.type + " s:" + sourceStack + ":" + sourceIdx + " d:" + destStack + ":" + destIdx); switch (type) { case Type.Disband: board.disband(sourceStack); break; case Type.Play: board.makeMove(sourceStack, sourceIdx, destStack, destIdx); break; case Type.Discard: board.discard(sourceStack, sourceIdx); break; } }