You're implementing a medieval strategy game in which pikemen should always walk in front of archers, and catapults should always be behind the archers. Explain how you could implement the movement system to ensure that you keep pikemen in front and catapults in the rear as much as possible. Explain how your answer might be different depending on whether or not the units simply need to end up in that configuration when they reach that destination, or if they need to maintain that formation while moving.
Answer / Rajesh Kumar Rai
To ensure that pikemen are always in front and catapults are always behind archers, you could implement a priority-based movement system. Each unit would have an associated priority level (pikemen having the highest priority and catapults having the lowest). When moving units, check for collisions between adjacent units, and if a collision occurs, move the unit with lower priority backwards until it no longer collides with its higher-priority counterpart. If units need to maintain formation while moving, you could create rules that force them to adjust their movement based on their formation position. For example, pikemen would be programmed to move directly towards their destination while archers and catapults would follow a curve around the pikemen.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is game playing ai?
You're tasked with implementing a crowd that walks around the streets of a city. Describe some ways you could implement this in a fast and efficient manner. How do you ensure that crowd members don't touch each other while moving? How do you get crowd members to get out of each others way, and ensure that no two crowd members can get stuck trying to get around each other?
You're implementing a medieval strategy game in which pikemen should always walk in front of archers, and catapults should always be behind the archers. Explain how you could implement the movement system to ensure that you keep pikemen in front and catapults in the rear as much as possible. Explain how your answer might be different depending on whether or not the units simply need to end up in that configuration when they reach that destination, or if they need to maintain that formation while moving.
How ai and game theory are related?
Which is the best way to go for the game playing problem?
How to resolve a problem with the game playing problem methodology?
As you're starting work on your game, one of your colleagues suggests avoiding pathfinding completely, and just using potential fields for pathfinding and navigation. He suggests that you just overlay a big 2D grid over the world, with each cell indicating the distance to the nearest obstacle. Is his idea feasible? Why or why not? When would it cause problems? Regardless of the answer to that question, what are some of the other ways that such a system could be used?
is this artificial intelligence lives over the other software programes and their flexiblity
AI Algorithms (74)
AI Natural Language Processing (96)
AI Knowledge Representation Reasoning (12)
AI Robotics (183)
AI Computer Vision (13)
AI Neural Networks (66)
AI Fuzzy Logic (31)
AI Games (8)
AI Languages (141)
AI Tools (11)
AI Machine Learning (659)
Data Science (671)
Data Mining (120)
AI Deep Learning (111)
Generative AI (153)
AI Frameworks Libraries (197)
AI Ethics Safety (100)
AI Applications (427)
AI General (197)
AI AllOther (6)