Add the simulation step driver and the game's random generator
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with the new sim module and the step call in app, then the calendar in timing, which the issue says moves out of the app. Build Sim::step in the order the issue gives, and add the seeded generator with its chance and pick reductions. Done means a unit test on the generator's first three values after seed 1 and on the calendar's one-step month flag passes, and run --headless --seed 1 prints identical sim lines on two runs. The replay's frame hashes must stay unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Core sim: the step of the original. Sim::step runs the six managers in the original's order (private spec simulation, main-loop 6.1): the game manager (total simulated time, the calendar, which moves here from the app, the month flag acted on one step late), the AI manager (the AI clock in whole ticks with its remainder, the removal list, the loop over the units taken by count before it starts, the event queue aged by one step), the world manager (the world clock), and the scenario, research and marketing managers as empty calls. The simulation's own random generator (the C runtime's formula, one 32-bit state, the chance and pick reductions as the original makes them), seeded through one seconds source at the three moments of main-loop 9.2: the wall clock in play, seed + n in a test run. run --headless --seed N. The [AI] keys of the ini read with their fallbacks. Log family sim (sim step <ms>, sim seed <n>, sim month <m> <y>).
Module: sim (new), app (the step call), timing (the calendar moves).
Done when a unit test checks the generator's first three values after the seed 1 against the C runtime's known sequence and the three reductions; a headless run with --seed 1 on a trial map prints identical sim lines twice; the month flag is acted on one step after the step that raised it (unit test on the calendar); the existing replay keeps its frame hashes.
Parent: #54
After: none
- Lingua principale
- Rust
- Stelle
- 0
- Fork
- 0
- Merge medio
- 2h 34m
- PR unite (30g)
- 143
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RustyZoo/RustyZoo
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RustyZoo/RustyZoo
Issue simili
-
founders_reward panics on a configured Testnet when the slow-start subsidy is not a multiple of 5Apertaexternal-contribution
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ZcashFoundation/zebra#11792 ·
I maintainer di solito rispondono entro 1 giorno
-
area/cli bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
bherbruck/solvecraft#2167 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
bitcoindevkit/bdk-cli#357 ·
I maintainer di solito rispondono entro 3 giorni