Results for “simulation”

4 results

  1. Challenge

    Seeded simulation

    Simulate 100 sensor readings, each with a 5% chance of a glitch, and seed random with 42 so the count is the same on every run and a test can check it exactly, then pick a kind for each glitch with…

    Write the code Easy 2 stages random random.seed random.choice simulation
  2. Challenge

    Retry the uplink

    …up to three times, taking each result from a list of simulated radio replies, and stop at the first success with break; then wait 2, 4, 8 seconds between attempts, as real retry code does.

    Write the code Medium 2 stages for loop range break retry
  3. Challenge

    Flag from config text

    …False, yet bool("False") turns it into True and the engine simulates instead of firing. Predict it, find out why, compare the text instead, then read yes/no settings typed by hand.

    Fix the code Easy 3 stages bool if else config
  4. Challenge

    Decimal comma

    The burn calculator works perfectly in the simulator. Then an operator at a European ground station types the burn length the way it is written in Poland and much of Europe, 42,5 , and the program…

    Fix the code Easy 3 stages strings replace float ValueError