Artificial Intelligence
So, most of the game is now finished. The disappointing thing is that the alien ship was not introduced. I have looked at many versions of AI, however there’s a good deal of things that has to be taken into consideration.
Consider the problem: There is an alien who’s purpose it is to destroy the player’s ship as it’s primary goal and collect any power ups (because that clearly would annoy the player). Meanwhile whilst this is happening, the board is active with asteroids bouncing around and a player ship with fire power.
The obvious answer is to use the ray trace technique. This is where the field of view is taken into considering and the alien ship reacts to that. There is also an opportunity for the alien ship to plot the best path to achieve its primary goal, if the player’s ship falls into view. This was made easier by the ship being a circular vessel, so there is no particular direction, so the ray trace could be focused on the momentum of the vessel or multiple rays are sent out all around at 45º intervals.
I have considered all sorts of ideas, including using minimax, to aid with the path of the vessel.
Regardless as to whether the course assignment is over within the next few days, I will pursue this along with the other areas.












