Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I'm learning AI, what game could I implement to put it to practice?

I have taken an AI course, and the teacher asked us to implement a game that makes use of one of the AI algorithms. Here is where I need a bit of help:

  • I don't know to what kind of games each algorithm is applied
  • if you could just give an example of a game or game type and the algorithm it uses, I would appreciate it

I don't need any coding help, I can manage that (my language of choice is Java). I only need a little help on selecting an algorithm.

like image 901
Geo Avatar asked Jan 08 '09 23:01

Geo


People also ask

How is AI implemented in games?

AI in gaming refers to responsive and adaptive video game experiences. These AI-powered interactive experiences are usually generated via non-player characters, or NPCs, that act intelligently or creatively, as if controlled by a human game-player. AI is the engine that determines an NPC's behavior in the game world.

Which game is an application of AI?

Starcraft's AI is capable of cheating to defeat human players by processing information about human player bases. Starcraft II as a game has also become a popular environment for AI research.

Can AI learn to play games?

Reinforcement Learning for game AIs One present day application of RL is to train AIs to play computer games (see DeepMind for some examples). Thanks to several openly available reinforcement learning packages it is now possible for even a novice Python coder to train an AI for an arbitrary videogame.

How do I start training for AI?

You can learn artificial intelligence by taking an online course or enrolling in a data science bootcamp. Many bootcamps provide an introduction to machine learning. Machine learning is a tool used by AI that involves exposing an algorithm to a large amount of data. It allows the AI to learn faster.


1 Answers

In adjunct to Ben's answer, a good combo is alpha-beta pruning along with a game like connect 4. The heuristic for something like tic-tac-toe is too simple, and for chess, too complex. But connect 4 or a similiar "middle of the road" game can be an excellent place to see how the heuristic makes a big difference in both efficiency and quality, and it's also complex enough to even get some "niche" heuristics that can win some scenarios over other, generally better heuristics. The rules of connect 4 in particular are simple enough that it's very easy to come up with your own successful heuristics to see these things in action.

Another common AI to play with is A* for pathfinding, such as unit travel in an RTS or sandbox environment.

like image 54
nezroy Avatar answered Oct 10 '22 03:10

nezroy