fire-eggs / CivOne

An open source implementation of Sid Meier's Civilization 1 using C# and .NET.
Creative Commons Zero v1.0 Universal
20 stars 4 forks source link

Civilization selection non-deterministic #81

Open fire-eggs opened 5 years ago

fire-eggs commented 5 years ago

Sometimes getting India, other times getting Mongols. Should always be the same.

fire-eggs commented 4 years ago

Unit tests should now behave consistently.

However, unit-tests vs actually playing the game are not consistent, even with the same RNG seed. The actual game play may be calling the RNG a large number of times before the Game constructor is invoked. Need to investigate further.