Progress
I decided to make a game called What Plants Crave. It’s a plant growth simulator. So far I’m just working on the statistical modeling.
I’m happy with the weather modeling. Here’s what I came up with:
- My code starts with a base 50% chance of rain.
- Every day it doesn’t rain, the base chance increases 20%.
- If it rains, the amount of rain is determined by the chance of rain on that day, multiplied by a random number between 0-1.
- Every day it rains, the chance of rain halves.
Simple, elegant, works pretty good!
I live in Ohio, and to check the reasonableness of the sim-weather, I looked up our annual rainfall.
According to this we get around 30″-40″ of rain annually.
My sim-weather reliably puts out around that much!