nahokitade / marioai

Automatically exported from code.google.com/p/marioai
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

MarioAIBenchmarkTest fail due to conversion to intS #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A lot of test fail here due to having incorrect values for their final weighted 
fitnesses.

They are:
testForwardJumpingAgentFitnessWithDefaultCreatures
testReceptiveField_1x2
testReceptiveField_3x1
testReceptiveField_1x1
testForwardAgentFitnessWithDefaultCreatures
testForwardAgentFitnessWithDefaultCreaturesVisual

The problem seems to be that the expected fitnesses are floats but that due to 
distance being stored as an int (recently?) the value returned by the 
EvaluationInfo object is always an int and thus off by a fraction each time.

The solution here is probably to just update the unit tests.

Original issue reported on code.google.com by melin...@gmail.com on 26 Oct 2010 at 7:44

GoogleCodeExporter commented 8 years ago

Original comment by Nikolay....@gmail.com on 26 Oct 2010 at 2:05

GoogleCodeExporter commented 8 years ago
Thanks you for pushing this issue up! The problem was right in  fractional 
fitness.

Original comment by Nikolay....@gmail.com on 26 Oct 2010 at 4:12

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r608.

Original comment by Nikolay....@gmail.com on 26 Oct 2010 at 4:13