Beispiel #1
0
 public CaravanAI(CaravanBoard board)
 {
     this.board = board;
     this.turnNumber = 0;
 }
Beispiel #2
0
 void Start()
 {
     board = this.GetComponent<CaravanBoard>();
 }
Beispiel #3
0
        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;

            }
        }