.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #41  
Old November 8th, 2006, 07:15 AM

Quakka Quakka is offline
Private
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Quakka is on a distinguished road
Default Re: Questions about a game in progress

Hi all, first post.

Quote:
thejeff said:
Well, if you can come up with a good, simple algorithm for "provinces you aren't likely to lose", combine it with the other obvious strategy of targeting provinces more likely to have sites of that path, weighted to keep everyone happy, I'd love to see it.
This is a pretty interesting problem. I'd suggest a simple fuzzy logic algorithm.

The basic idea would be to calculate a score for each province you control, based on n criteria. Each criterion would award points for that province, depending on how well the province matches it on a scale of 0 to 1. Each criterion would also have an intrinsic importance value, which would be used to scale it against the others. The actual points received would be (match) * (importance).

When the scores are calculated, the provinces are sorted according to score, and the highest scoring is selected. Provinces searched to 4 or more in the relevant paths or targeted by an overlapping search are excluded.

In my programming experience, these kind of things work best when you concentrate the weighing on a few things, and keep the rest as "tiebreakers". I'd suggest the following:

1: Ratio of friendly neighboring provinces versus enemy controlled ones. This would cause a tendency to avoid frontier provinces, or provinces you have captured with raids.

2: Previous searches. This would pick unsearched provinces over ones with 1, 2 or 3 level searches. A bit trickier to calculate for Aschaic Record, but possible.

Tiebreakers:

3: Probability of magic sites. Wastelands would get targeted over farmlands.

4: Probability of magic sites for this spell. Gnome Lore would pick mountains over other terrain and so forth.

5: Number of other sites already found. IIRC there is a maximum number of sites that can be found in one province.

It's not a perfect system, and never will be, but it'd be a lot better than going through the province list from top to bottom. Assistive features such as the auto search are not meant to make real decisions for the player anyway, just to remove the chore of making the trivial ones.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:39 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.