PH251 / evolutionchamber

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

Extractor trick should never be suggested at less than max supply #200

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using version 27 on Mac OS X, I often see the extractor trick on 9 supply, or 
generally at less than max supply, which doesn't make any sense. The only 
reason to do the extractor trick is to get past max supply, and otherwise it's 
a waste of time and money, as you could just make another drone.

It'd probably help shortcut a lot of the search area to make sure that the 
extractor trick is only valid at max supply.

Original issue reported on code.google.com by kna...@gmail.com on 31 Mar 2011 at 10:25

GoogleCodeExporter commented 8 years ago
Sorry, that should read version 0026, not 27.

Original comment by kna...@gmail.com on 1 Apr 2011 at 4:51

GoogleCodeExporter commented 8 years ago

Original comment by AudioL...@gmail.com on 7 Apr 2011 at 2:17

GoogleCodeExporter commented 8 years ago
Reading the code, it looks like it's being constrained to be done at max supply 
or max supply - 1. Is there a reason for ever doing the extractor trick at less 
than max supply? I can't think of one. Even when doing the double extractor 
trick, you're at 11/10 for the first one, and 10/10 for the second one. After 
the second one, you're at 9/10 and you build a drone to put you back at 10/10. 
But both extractor tricks happen at or above max supply.

So, again, is there something I'm not seeing? If I'm right, then line 44 of 
EcActionExtractorTrick.java should change from:
                if (s.supplyUsed < s.supply() - 1)
to:
                if (s.supplyUsed < s.supply())

Original comment by kna...@gmail.com on 8 Apr 2011 at 12:25

GoogleCodeExporter commented 8 years ago
What if you are at 9 supply and need to build a Queen (2 supply)? Seems like a 
valid reason to do the trick when not on max supply.

Original comment by netpr...@gmail.com on 18 Apr 2011 at 6:42