In the previous chapter, we learned about adding user interface elements to our game. We added a hit points representation above our ships, added buttons, and even created our own dialog.
In this chapter, we will add artificial intelligence to our game. The following are the topics we will cover:
The concepts of fuzzy logic and state machines
Enemy ships should move and attack
Adding some kind of progression to the game
Winning and losing the game
However, before we get to the actual coding, let's see the concepts of artificial intelligence that we will implement.