malthrin comments on Open thread, November 2011 - Less Wrong

4 Post author: Oscar_Cunningham 02 November 2011 06:19PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (209)

You are viewing a single comment's thread. Show more comments above.

Comment author: malthrin 02 November 2011 08:29:00PM *  2 points [-]

I put some thought into it, but I don't think I'll have time to. I wouldn't mind sharing my ideas with anyone who is actually doing it.

Comment author: lavalamp 02 November 2011 09:57:45PM 1 point [-]

I wouldn't mind listening to ideas...

Comment author: malthrin 03 November 2011 03:09:25AM 2 points [-]

My most important thought was to ensure that all CPU time is used. That means continuing to expand the search space in the time after your move has been submitted but before the next turn's state is received. Branches that are inconsistent with your opponent's move can be pruned once you know it.

Architecturally, several different levels of planning are necessary: food harvesting and anticipating new food spawns. Pathfinding, with good route caching so you don't spend all your CPU here. Combat instances, evaluating a small region of the map with alpha/beta pruning and some pre-tuned heuristics. High level strategy, allocating ants between food operations, harassment, and hive destruction.

If you're really hardcore, a scheduling algorithm to dynamically prioritize the above calculations. I was just going to let the runtime handle that and hope for the best, though.