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
anybody have an algorithm to implement? :)
thx a lot
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)
thx a lot
Comment