How to create AI??

I have started a 2 player game/project in which I need “enemies” (AI), to move towards the players positions. Does anyone know how to do this?
Thanks in advance

MinMax AI routines

That’s a deep subject and, while it may seem simple, is far from it.

You might take a look a some of the tutorials on Unity or Unreal Engine Youtube channels and dig into this free ebook:

Artificial Intelligence in Games

Could you expand?

[quote=419967:@Tim Jones]That’s a deep subject and, while it may seem simple, is far from it.

You might take a look a some of the tutorials on Unity or Unreal Engine Youtube channels and dig into this free ebook:

Artificial Intelligence in Games[/quote]

I’ve watched unity tutorials on youtube which seem somewhat simple, but can’t figure out how to code it into xojo

https://www.youtube.com/user/Brackeys

When you have problems implementing the Minimax AI method there is a very good course on Udemy from Aarthi Elumalai named “Tic Tac Toe with AI”. She explains the method in great detail. She uses JavaScript to create the game. She is also very accessible, if you have a problem you can just ask her and she will reply.

This is the link to her course :
link text

I know it is not Xojo or Basic but believe me, the methods can be easily converted to Xojo. Also before coding the actual AI method, she explains it in great detail. I bought and by all her courses because they are very good. On this moment there is a sale where you can get this course for 9.99 USD but you need to be fast.

Also the free ebook about Artificial Intelligence in game suggested by Tim Jones, explains the Minimax method.

You are not the only one struggling with this subject, I also have problems understanding it. But by learning and being determined you will succeed, like I did. As you can see here in your thread, there are already many people willing to help you.

Because during the last days I gave several times like I did here a suggestion to other applications or in this case Udemy. I want to point out that I just want to help and not want to do the marketing and sales for them. I just give my genuine opinion without receiving any reward or benefit.

I hope you find a way to implement AI in your game. Xojo is certainly a good tool which can help you with this.

Chris

Very cool stuff. I just watched these two videos that helped to explain the Minimax.

Algorithm
https://www.youtube.com/watch?v=l-hh51ncgDI

Applied to Tic Tac Toe
https://www.youtube.com/watch?v=cGN6LfnOPeo

The class that Chris posted looked perfect to get even deeper knowledge.