Algorithms, heuristic and hacks

AI IN GAMES

Algorithms 

A simple set of rules that try simulate really world behaviour

Algorithms are a peace of code that determines the behaviour of AI and the World Behaviour.   
for example the character walks into the room and there is AI shooting each other do you wait till their all dead or wait till they see you and start shooting you 

for example pacman with the ghosts (if pacman is near ghost - ghost chase pacman)

Destiny - if the player doesn't shoot or get near the AI they shoot each other till you shoot or get near and then they shoot you.





heuristic

Heuristics are strategies that you learn from previous experience   

Heuristics is the way you and the AI both learn from each others mistakes. 

Heuristics are a process a solutions in certain time points - certain points within the game - learn from your mistakes instead of keep getting shot you learn how to not get shot. trial and error

for example killing an AI in a certain way and you die and re-spawn just before you killed them you will learn not to kill them in that way again but if you do the game will learn that you have already killed them that way before so they will learn and move away and try something new- making sure that the AI don't become too well learnt.

OPTIMALITY
when several solutions exist for problems. when seeing a solution doesn't mean its the only solution within a game.    

There could be different solutions at a certain time like if you kill all the AI it could lead to different Algorithms to be activated down the line (a different story being triggered) however if you chose to not kill them and sneak around them there could be a different Algorithm that gets triggered. you always have to double think and way your options before making them.

Call of Duty BO2 - you have certain chooses to make and by making them chooses within the campaign will effect the story later on down the line. 


COMPLETENESS 
Completeness means that to be able to find every single way of finding the solutions of being able to complete the game. by doing this means that the AI will be able to learn every single way of completing the game. which means that the game will then become impossible to win and the user wont play it no more as their will be no way of winning the game.

You don't want a game like Pac-Man to be able to always die and not complete the game - for the ghosts to always follow you and try trap you instead of being able to do their own routes till your in sight.


ACCURACY
Out of all the possibilities that could help you win the game could come near perfection. which will means that the game will give the user - AI's a challenge but not too much of a challenge. for example you could choose to kill all AI's in a room with the chance of the bodies being seen which could trigger more AI's or only killing certain ones and hiding them or trying to navigate around them.


EXECUTION
Execution means that does the AI respond to different outcomes in games - for example if you shoot a barrel to try kill them do they stand there to be killed or try run away or move completely away before the barrel explodes. you will need to analyse the different possibilities like if certain AI's don't die how you going to kill them before they kill you.


Hacks

Hacks means that the AI or user being able to gain access to information that they shouldn't of been able to gain access to. for example being able to get outside the map and skip certain areas of the game instead of killing AI's to complete the game properly or even the AI's being able to no where your hiding and come find you when you are completely hidden and in a place AI shouldn't be able to see you. with hacks it can take you out of the game which means you not being able to immersed keeps you in the game no more.


using glitches that the player / AI shouldn't of gained access to for example Instead of killing the final boss you can skip the boss and get the final loot and also the AI'S being able to find you without them having the knowledge of where you are.

Cutsceens are Hacks where you don't have control of things.
AI getting hold of codes what they meant no to have

Destiny / Destiny 2 has cutsceens that are classed as hacks also their are certain areas that you shouldn't go/ push AI's off the map without killing them the proper way.





Comments

Popular posts from this blog

Learning Techniques

Decision making concepts