Does game logic use artificial intelligence?

I’m a person interested in Artificial intelligence.
Does game logic like the behaviour of the enemy, spread of disease(in plague inc.) etc. Use artificial intelligence?
Does it use all those algorithms?
Can game logic be considered artificial intelligence?

Game Logic is a broad term that encompasses all parts of a games workings, so it can’t be compared to Artificial Intelligence. Just like fruit can’t be compared to apple. If you are asking if the same algorithms are used in simple game code such as spread of disease, it is possible, but not necessarily.

Artificial Intelligence refers to a very specific part of game logic that deals with simulating human behavior. The more varied and unique the behavior the less artificial the intelligence seems. This is the goal for the person making the algorithms used by the AI. What to do when noticing an enemy, where to hide or find cover, when to use utility items, when to attack and when to defend. These are all parts of AI code that contribute to fabricating human logic. It’s all about making your AI react to situations based on dynamic scenarios that occur in real-time.

It’s perfectly possible to use some of the same techniques in AI code other places, but the main goal of AI code is to simulate human behavior. So unless the other part of the game logic was something sentient that needed to be able to make decisions based on environment, it wouldn’t be a very good idea.

2 Likes

[quote=A page on the web, post: 2344355, member: 59957]
An event driven engine can also be used where action is taken based on specific events that happen. For example, some events with actions could be [3]:

If enemy seen → Then attack with best weapon

If wounded → Then run away or hide and find health

If out of ammo → Then find ammo
[/quote]
This was on a document file on the web abou AI in games.
Doesn’t artificial intelligence mean the Ability of a computer to do certain tasks on its own?
like in xbone there is a feature where the console will play the game when you’re offline

It’s going to come down to a lot of tricks to fake it. The algorithms that mimic learning are too expensive to be in a game more complex than chess, which would not benefit from them since chess is simple enough for the machine to know what move to make based on any state of the board. Games are more likely to settle for dumb enemies or have smart decisions pre-calculated to happen under very specific circumstances.

A* is probably the extent to which games will employ ‘learning’ algorithms. In a complex environment that can change you’ll likely want a way for your entities to find get around.

That is both unlikely and absurd. A few games might have a feature that has events happen based on a passage of time, but the console itself is not playing them. The xbone certainly does not have the hardware capable of the degree of artificial intelligence that would be needed to plug & play any game you throw at it. Some human brains can barely manage that :wink:

2 Likes

Artificial intelligence is exactly as it sounds. The ability for machines or software to exhibit intelligent behavior.

If your’re talking about the most basic concepts yes. But the goal of conventional AI is to simulate human behavior. It’s much more fun to fight enemies in a singleplayer game when you forget they’re driven by computer logic. These are all techniques to increase the quality of immersion in games. That is, the degree to which you feel included in the game world.

The key to this is within real-time gameplay. Does the AI make seemingly natural decisions when presented with a given situation? Will the AI pop up out of cover while the player is shooting at him? Will the AI seek cover when she is out of ammo and needs to reload? How long does an AI unit wait while unable to find it’s target before seeking? Questions like that drive the AI algorithms.

While it is possible that eventually AI will become sophisticated enough to play games for us. It would completely defeat the point of videogames in the first place.

Does that mean artificial sweetener is the ability for machines or software to exhibit sweet behavior?

Quite the impossible task since so much of human behavior is illogical :stuck_out_tongue:

An intelligent bot would be annoying for mmo developers :slight_smile:

How much of that is due to us simply not understanding their conscious and subconscious motivations?

1 Like

And how much of that is affected by the fact that a real good AI opponent is too hard… There was a talk somewhere at ubisoft about artificial dumbness of characters to keep the game playable.

2 Likes

Chess playing algorithms don’t even learn. It’s so much faster to give the computer static move sequences and heuristic algorithms than to generate them while playing. There are algorithms that figure out those move sequence. It’s just more efficient figure out those sequences outside of playing.

1 Like

A huge part of game AI is building a satisfying challenge for the player. It’s not so much about duplicating what a real human would do. In many games this would amount to run away and hide. Nor is it about being actually smart, this leads to players being hammered. Game AI also has to fake just about everything, as the processing power is not there to do the tasks at 60 FPS.

The main goal of a game AI is to loose convincingly.

2 Likes

I’d like to think it’s that simple, but when you take a very basic and logical subject and explain to people, some of them miraculously do not grasp it.

That’s what I meant :stuck_out_tongue: A game as slow paced as chess is the only one that could get away with full blown artificial brains, because you can stall for ‘thinking’ and there isn’t a lot going on visually. But chess is easier handled as you said, so there wouldn’t be a point in implementing actual ‘thinking’ or ‘learning’ algorithms.

@thegamer1234 I see the image now. That’s some amusing wording. For a racing games I do believe they can use your friends’ driving stats to change how some ai drive. But that doesn’t really need ai for a racing game. Like if your friend made an almost perfect drift around a hard corner. One of the ai could mimic the drift when nearing that corner.

1 Like

I think if self-aware AI ever comes about, they’ll do something similar to chess development algorithms. They’ll sample the scenario and iteratively test for solutions. Kind of like evolution. I doubt AI will ever learn on the go as humans do because it’s inefficient.

1 Like

That’s also an important thing to consider in conversations about ai :slight_smile: What the human brain does is a miraculous disaster, from fusing multiple streams of consciousness to signal leakage between neurons. It doesn’t need much electricity or input though, so it’s got that going for it.

We should build neurons. Simply, garbage quality processors that can barely do anything except pass signals around unreliably to their surroundings. That’d give us something ‘intelligent’

2 Likes

I agree 100%. ‘Learning’ on the go would be an unwieldy way to go about the situation. Really, once you get into it, the process becomes less about when and how to sample those situations, but what to do with the information gathered from the sampling.

Indeed it is. This kind of reminds me of a great line from Bladerunner:

“Is this to be an empathy test? Capillary dilation of the so-called blush response? Fluctuation of the pupil. Involuntary dilation of the iris…”

Although, to put it another way. In games, we want our units (wink) to seem more human. Part of that is actually programming in illogical behavior. If an AI instinctively knows where you are regardless of vision/sound/whatever, it’s not very fun. But if there is some variance in whether or not an AI unit makes a good decision, well that kind of makes things interesting :).

More human than human is our motto.

1 Like

The goal of simulating human behaviours is important but not always the overall goal for AI in games. In academia you are often looking into dealing with overall intelligent choices that do not have to seem human like at all. Often well performing AI seems very, well computer like, but can help you solve other interesting options for gamers. However i agree with you that human like behaviours are really interesting - thats why i wrote my master thesis about it :slight_smile:

1 Like

All right so AI means the ablity of computer to think and make descsions on its own, Just like a human.
And yes, doesn’t the dog in Ashen Rift (a game made in unity) use AI? http://www.ashenrift.com/

Well there’s “ai” that operates on a decision tree and there’s ai that creates new information. The latter is the interesting, more expensive one.

Can the latter be used in a game?
http://www.madfingergames.com/deadtrigger1
I found this on the website

  • [quote=, post: 2345287, member: 285669]
    Evolving zombie AI will keep you entertained
    [/quote]
1 Like

Imagine a robot AI sleeping for us so that we are saved from the effort of counting sheep.
Do you think anyone would make an AI that would play video games for us?
Someone might invent one to play the game while you’re busy.