🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

AI in Turn-Based Games like X-COM

Started by
2 comments, last by Tom Sloper 3 years, 4 months ago

Hi everyone! First of all, I apologize in advance for possible grammatical mistakes in the text.

My friend and I are planning to create a small game with gameplay similar to the first XCOM games. The gameplay of the games looks like this:

  • The playing field is a squared tile grid, every tile of which can contain lanscape part, obstacle or unit.
  • Player and AI both has a couple of units.
  • The game is played in turn - first all of the player's units act, and then all the AI ​​units.
  • Each unit is given a limited resource per turn - time units.
  • Each action takes a certain amount of time units.

In XCOM remakes, this system was simplified to "each unit has two actions per turn", however we do not like this approach, and we want to do it as it was in the original games

Now we are at the stage of analyzing the feasibility of the project, and I had a question related to the implementation of the AI architecture.

We set ourselves the following requirements for the AI:

  • It must choose behavior depending on the goal and current situation in the game
  • The decision making process should be as little "hand-authored" as possible
  • It must create a "meaningful" plan to achieve the goal, and not choose one "best" action at a time in the hope that someday the goal will be achieved
  • The turn of each unit must end gracefully, and must not be interrupted in the middle of action - the time units limit must be implemented.

As an example of the AI unit plan:

run up to a position where you can shoot at a predetermined target, and run back into cover. If there are no firing points (there are not enough time units to reach the place) - take a position from which it can be done later.

Advertisement

Maybe read what your friend discussed?

https://www.gamedev.net/forums/topic/708934-ai-in-turn-based-games-like-x-com/

EDIT: It also helps if you pose a question.

Duplicate thread. Closed.

-- Tom Sloper -- sloperama.com

This topic is closed to new replies.

Advertisement