MacharlaNagamanojreddy/f1-strategy-analytics ? reverse-engineered prompt
Reverse engineered prompt
Build me a Streamlit app for F1 race strategy analysis that lets me compare two tyre compounds, choose a pit lap, and run a Monte Carlo simulation to see which strategy is likely to work best. I want to see the average race time, the spread or risk, the best simulated result, and a histogram of all the simulated outcomes.
Also include a real data mode that pulls Formula 1 lap data with FastF1, uses cached data when possible, and fits a simple tyre degradation trend from actual laps. It would be great if I can pick a couple of sample tracks and drivers like Monaco and Silverstone with Hamilton.
Keep the app clean and easy to use, and split the logic so the simulation, Monte Carlo runs, and real data fitting are separate from the dashboard. If you need to look up current FastF1 or Streamlit docs online, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit