Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

trains simulations  RSS feed

 
Motlake Phora
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to write a program which simulate trains movingon the railway and even stoping in stations.The must be able to sense one another. I believe that threads can do this but have failed in many ways.
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think this is a threads question. It's more of a question of program design. And it sounds an awful lot like a similar assignment I had in my Object Oriented Programming course. We'd be glad to help you with specific questions about design or implementation, but we won't provide you with source code. So ask away.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!