View Single Post
  #24  
Old October 29th, 2003, 02:33 AM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Dominions 2. AI. Suggestions, that how to fix it.

Do you know how to psuedo code or basic? Not really programming but writing out a set of instructions. What kinds of things would you add? Im not trying to be funny its just that for me this would be where I wouild go next after saying the AI needs some smart code.

If (indep less than 5) or (mapProvinces less than 140) then
spend income/2 on PatrollingUnit
endif

If (PatrollingUnit = MaxAssigned) then
go forth as large army
begin new Patrolling Unit
endif

If (neighbor not owned by me) and (neighbor not owned by indep) then
purchase elite troops
endif

[ October 29, 2003, 00:34: Message edited by: Gandalf Parker ]
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote