Results 1 to 5 of 5

Thread: Text Based Racing Sim

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Location
    Southeast
    Posts
    4

    Text Based Racing Sim

    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

  2. #2
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    Dont really understand what you want to do, but you could have a Array with a structure type, ex:

    VB Code:
    1. private type DriverType
    2. sName as string
    3. iAge as integer
    4. iDifficulty as integer
    5. end type
    6.  
    7. Dim Drivers(10) as DriverType
    ICQ: 128716725

  3. #3
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    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!!
    Sanity is a full time job

    Puh das war harter Stoff!

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2002
    Location
    Southeast
    Posts
    4
    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

  5. #5
    New Member
    Join Date
    Dec 2015
    Posts
    1

    Re: Text Based Racing Sim

    I realize I'm digging up a long ago buried thread, but I'm very curious. Did you ever finish this project? Would you share it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width