The highlights of this evening included hoovering, washing and tidying the kitchen, and sewing up the enormous hole in the crotch of my other half-decent pair of trousers. I've no idea how long it'll last, I must admit, as it's my first serious attempt at sewing up holes :)
I came up with a project today on the way home. I've been playing around with the Bloodshed Dev-C++ IDE for a while, doing some basic C++ to try and figure out how much I remember. It's surprising how much I do, but I'm worried about how out of practice I am and how long it took me to figure out how to do some basic things.
I was wondering how easy it would be to do a simple traffic simulation. I'm wondering if it's even possible for me, as I haven't done this stuff for a while. All I want to do is a basic motorway sim, assuming basic single laned traffic flow and allowing for variances in speed of individual vehicles. Shouldn't be too hard. Right?
<lj-cut text="Musings> So we start off with a vehicle class. Possible members: o Speed o Vehicle in front o Vehicle behind o Length? o Min distance from car in front The simplest way would be to have a fixed length array with each vehicle class taking up /length/ elements in the array. Dynamically sized linked lists are another option, how do I then cope with empty space? I'll get there. </lj-cut> Bed now.
I came up with a project today on the way home. I've been playing around with the Bloodshed Dev-C++ IDE for a while, doing some basic C++ to try and figure out how much I remember. It's surprising how much I do, but I'm worried about how out of practice I am and how long it took me to figure out how to do some basic things.
I was wondering how easy it would be to do a simple traffic simulation. I'm wondering if it's even possible for me, as I haven't done this stuff for a while. All I want to do is a basic motorway sim, assuming basic single laned traffic flow and allowing for variances in speed of individual vehicles. Shouldn't be too hard. Right?
<lj-cut text="Musings> So we start off with a vehicle class. Possible members: o Speed o Vehicle in front o Vehicle behind o Length? o Min distance from car in front The simplest way would be to have a fixed length array with each vehicle class taking up /length/ elements in the array. Dynamically sized linked lists are another option, how do I then cope with empty space? I'll get there. </lj-cut> Bed now.
There are no comments on this entry.