How to create AI??

  1. 2 weeks ago

    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

  2. MinMax AI routines

  3. Tim J

    Jan 2 Pre-Release Testers, Xojo Pro Dehydrating in AZ
    Edited 2 weeks ago

    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

  4. @Chris V MinMax AI routines

    Could you expand?

  5. @Tim J 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

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

  6. Julian S

    Jan 2 Pre-Release Testers, Xojo Pro UK

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

  7. 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

  8. Hal G

    Jan 3 Pre-Release Testers, Xojo Pro, XDC Speakers Orlando, FL

    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.

or Sign Up to reply!