MCPcopy Create free account
hub / github.com/SimHacker/micropolis / doVotes

Method doVotes

micropolis-java/src/micropolisj/engine/CityEval.java:271–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269 }
270
271 void doVotes()
272 {
273 cityYes = cityNo = 0;
274 for (int i = 0; i < 100; i++) {
275 if (PRNG.nextInt(1001) < cityScore) {
276 cityYes++;
277 } else {
278 cityNo++;
279 }
280 }
281 }
282
283}

Callers 1

cityEvaluationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected