pmsumner: (Default)
posted by [personal profile] pmsumner at 10:09pm on 17/08/2006 under ,
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.
Music:: Frasier - Paramount Comedy 1
Mood:: 'sleepy' sleepy

Reply

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

May

SunMonTueWedThuFriSat
      1
 
2
 
3
 
4
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
31