AI algorithm for “RaceTrack” game

后端 未结 8 472
天涯浪人
天涯浪人 2020-12-25 14:50

does anyone know (or can suggest) a good algorithm for an AI for the RaceTrack pencil-paper game?

since you have 9 possible choices in each step and you need to look

相关标签:
8条回答
  • 2020-12-25 15:19

    While it won't be immediately applicable to RaceTrack, you may be able to learn something from the A* path-finding algorithm. It's used in a lot of games to help the AI figure out how to get from point A to point B as quickly as possible.

    0 讨论(0)
  • 2020-12-25 15:19

    there are a few algorithms known in chess like alpha-beta pruning, move ordering etc.. maybe you have better luck if you search in chess context.


    alpha beta, strategy


    Edit: Those path finding algorithms only work if you don't have additional rules and conditions. For example if you also have velocity and centripetal forces you're out of luck. If you don't have those advanced conditions you're better off with a simple path finding algorithm as stated in other answers.

    0 讨论(0)
提交回复
热议问题