Ai into a Godot Game!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By romndesh

Does anybody know how to implement Artificial inteligence into a game? I am using Godot for that game.

I need to know how to do that the cpu learn from his errors while playing vs me, and save that infomation to avoid the cpu do it again. My game is the triomino( Triominó - Wikipedia, la enciclopedia libre ). The cpu must learn about my movements and his own errors to avoid them when play again…

If you want to archive something akine to AlphaGO you should start looking into machine learning.
Mabye try and create a simple “AI”, like to old chess computers.

coffeeDragon | 2018-11-30 09:00

:bust_in_silhouette: Reply From: FlyingFlower

If you have no experience with A.I., I would not recommend to start with machine learning. Try maybe some breath-first-searches to solve triomino puzzles.

But if you want to make the game learn with mistakes, you would need to store the progress somewhere (eg: a file in Godot). Here’s an interesting read that may help you (if it’s a bit confusing, try reading the first chapters first): The Nature of Code