Getting back into the swing
Setting up a bit of a framework. I need a way to persist values, such as the current date, weather etc, and I don't want to have a table with only one row, but lots of fields, one for weather, one for date, etc. So I've set up an "Environment" table to store all this stuff, one value per row. And naturally I need functions to read a given value and set it. Took a bit of fiddling to get the read function to work, but the write function worked first off. Heh! It's rare that a non-trivial piece of code runs without bugs.
First game related task will be to set the weather for each day. I'll then have a skeleton I can hang everything else off. Pilot fatigue, injury recovery, reinforcements, replacements etc. And eventually German raid planning. Need to enter some data for that, and I'm still to work out the map structure to locate airfields and targets. I'd just have a simple grid, but I've got to account for radar stations and if I use a grid I'll have to calculate detection values for each station.
Dragged out two more boardgames to use as references. RAF is the solitaire day-by-day game of the battle, and "London's Burning" is a more pilot oriented game, which should be helpful for stuff like aircraft damage, pilot bale-out chances etc.
Battle Over Britain is the primary source for raid planning and resolution - the other two games are abstracted out to a huge degree because they are solitaire, but BoB gives a detailed mechanism for planning raids, assembling them, routing etc.
All good fun. I suppose the hard part will be making a website with all this stuff.
First game related task will be to set the weather for each day. I'll then have a skeleton I can hang everything else off. Pilot fatigue, injury recovery, reinforcements, replacements etc. And eventually German raid planning. Need to enter some data for that, and I'm still to work out the map structure to locate airfields and targets. I'd just have a simple grid, but I've got to account for radar stations and if I use a grid I'll have to calculate detection values for each station.
Dragged out two more boardgames to use as references. RAF is the solitaire day-by-day game of the battle, and "London's Burning" is a more pilot oriented game, which should be helpful for stuff like aircraft damage, pilot bale-out chances etc.
Battle Over Britain is the primary source for raid planning and resolution - the other two games are abstracted out to a huge degree because they are solitaire, but BoB gives a detailed mechanism for planning raids, assembling them, routing etc.
All good fun. I suppose the hard part will be making a website with all this stuff.