The Cortex game engine already out performs many other game engines with its existing artificial intelligence (AI) interface, but now it is even more powerful! In computer science there is a concept known as finite state automaton, also known as state machines. This is where the concepts for automatons or androids arise from, like Data. Below is an example of one of the simplest state machine diagrams possible. In a real AI scenario the diagrams become highly complex.

State machines are extremely useful in the programming AI, but difficult to implement cleanly. Most of the time programmers end up making a mess with rule based if-then-else or switch-case statements. The new Cortex engine has been given an interface for all AI brains where by any given state can be encapsulated. Only the current state of the state machine is bound to the AI brain at a given time thus giving a pure representation of the current state. Only the code of the current state is executed and without doing tons of conditional statements to determine what that current state is. The brain at any given time is therefore its own state and contains only the code for that state.
This not only greatly increases the speed of execution, but allows for new states to be added at later time or states to be removed entirely from the AI in real time. Thus, it is possible in a sense for the AI to become a true Neural Network style architecture if you wanted it to be. The code is far simpler to debug, since the brain can only contain a singular state at a time. By giving the Cortex engine this ability it has opened it up to extreme AI capabilities.




