public MastermindWorldEngine(MyMastermindWorld world, MyWorldEngineParams pars)
 {
     m_params = pars;
     m_world = world;
     if (pars.RepeatableHiddenVector)
         m_rndGen = new Random(100); // make it deterministic - always start with the same seed
     else
         m_rndGen = new Random();
 }
Esempio n. 2
0
 public MastermindWorldEngine(MyMastermindWorld world, MyWorldEngineParams pars)
 {
     m_params = pars;
     m_world  = world;
     if (pars.RepeatableHiddenVector)
     {
         m_rndGen = new Random(100); // make it deterministic - always start with the same seed
     }
     else
     {
         m_rndGen = new Random();
     }
 }