Traffic system of train simulation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abz89
    New Member
    • Mar 2010
    • 21

    #1

    Traffic system of train simulation

    hi for all byte's member :D

    just want to ask, recently i've tried many of programming language. And as my test application, i want to create a little program that simulating train traffic.

    i,e. train go from station A then station B. After that, the train have moving reverse, from B to A

    Code:
    train@station A                     B
    .=======>>--------------------------.
               
    A                           train@station B
    .-----------------------------====>>.
    
    A                        train@station B moving backward
    .--------------------------<<=======.
              ("D" as distance)
    anybody have an algorithm to implement? :)

    thx a lot
  • abz89
    New Member
    • Mar 2010
    • 21

    #2
    hhm forget it! :D

    i've found the algorithm by myself, simply, just use if looping function..

    dear admin, lock please :)

    Comment

    Working...