Exemplo n.º 1
0
        public override bool Equals(State other)
        {
            StrikerIAState strikerState = other as StrikerIAState;

            return(strikerState.position == position);
        }
Exemplo n.º 2
0
        public override int EstimateCostToGoal(State current)
        {
            StrikerIAState strikerState = current as StrikerIAState;

            return((int)(Math.Abs(strikerState.position.x - strikerState.goalPosition.x) + Math.Abs(strikerState.position.y - strikerState.goalPosition.y)));
        }