yvsarkisyan / keeperfx

Automatically exported from code.google.com/p/keeperfx
0 stars 0 forks source link

Computer Player to build treasure room right up against gems #204

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Throughout the original campaign, the rival keeper remains weak because he 
simply does not have enough gold to train his creatures to level 10. This 
happens even on levels with gems.

One reason seems to be inefficient mining. I think the AI would perform a lot 
better if he always tries to build 3 tiles of treasure room around all sides of 
the gems. This would address to causes of inefficient mining:
* Not clearing out the dirt all around the gems
* Having the imps walk a long way to a treasure room and back again

Original issue reported on code.google.com by Loobinex on 11 Jan 2014 at 12:30

GoogleCodeExporter commented 9 years ago
Agreed, that would help a lot.

How digging gems should look like:
- Computer Player should find a path to dig to gems using wallhug algorithm.
- Computer Player should try to dig a square area around gems, but only select 
to dig those slabs which are connected to the original wallhug path.
- Computer player should try to place treasure room in the area around gems, if 
there are any claimed slabs.

The square area around gems:
- Should be 3x3 if it is not possible to claim the tiles around gems
- Should be 5x5 if it is possible to claim these tiles

Original comment by mefistotelis on 13 Jan 2014 at 11:10