PDA

Click to See Complete Forum and Search --> : Text Based Racing Sim


TigerJones
May 9th, 2002, 08:56 AM
I am developing a text-based Racing simulation. I developed the game on an excel spreadsheet and
am now in the process of porting it to VB. My question is what kind of data structure should I use
for my driver data(ratings,car# etc.)? I have about 50 drivers and hope to eventually produce random
drivers as the simulated seasons progress. Should I use arrays & strings, a database or access an OLE
(excel spreadsheet) . Also if using a database what grid would you suggest to show data; DB Grid, MSflexGrid etc.?

thanks

Tigerjones

petrus
May 9th, 2002, 06:12 PM
Dont really understand what you want to do, but you could have a Array with a structure type, ex:


private type DriverType
sName as string
iAge as integer
iDifficulty as integer
end type

Dim Drivers(10) as DriverType

/\/\isanThr0p
May 9th, 2002, 08:25 PM
what petrus posted is probably the best way to go but what is a text based racing sim??? isn't racing about speed?
sounds kind of interesting... I have never head of anything like that!!

TigerJones
May 10th, 2002, 07:28 AM
thanks for the help. Basically the "textbased Racing sim" is a statistical simulation of nascar racing. Each driver has a driver rating and a track rating and after on every command click the race progresses one lap. On each lap a random # is produced for each driver and points are rewarded or subtracted based on his rating. This improves or hurts his overall position. This is done until all the laps have been run. I have a list of other features planned but thats the basic plan I have and how I worked it out on my speadsheet. If anybody has any suggestions I 'd be glad to hear them

TigerJones