preview

Artificial Intelligence: The Heart Of Artificial Intelligence

Decent Essays

GAME AGENTS
In games, the purpose of AI is to create an intelligent agent, referred as a non player character (NPC). This agent acts as an opponent, an ally, or as a neutral entity in the game world. The heart of artificial intelligence is a gaming agent.
An agent has three key steps through which it continually loops. The steps are commonly known as the sense-think-act cycle.
1Now coming across these steps,
1. SENSING
The game agent must have information about the current state of the world to make decisions and to act on those decisions. The world offers this information to the game agent about the existence, location, and state of every opponent, barrier, or object.
Game agents are given human limitations. They are confined to know
2only …show more content…

It is important to compute vector to each object to minimize processing.
The following is the order of the steps:
1. by viewing the distance between the object and the agent
2. by seeing if the object is within the viewing angle of the agent(using dot product between object vector and agents forward vector)
3. by seeing if the object is unobscured by the environment
- Hearing
An interesting twist on agent awareness is to allow an agent to sense through hearing. Hearing is commonly modeled through event-driven notifications. For example, if the player performs an action that makes a noise, the game will compute where that noise might travel to and inform any agents within that range.
- Communication
Many types of agents are expected to communicate with each other, so it may be important to model the transfer of sensed knowledge be- tween agents.
3Similar to the mechanism of hearing, information from communication will be event-driven in the form of notifications. When an agent has useful information and comes within a certain distance of other agents, the information will be sent directly to the other

Get Access