Author

rectorsquid

Computers & Programming

What is a Train?

I was working last night on train routing and came across a serious dilemma; if a train splits in two, there is a new train that didn’t exist when the player first set routing information for the original train. What about a train that is created that has…

Continue reading
Computers & Programming

Video of a Working Train

The code is still far from optimal but the track network traversal and linear distance computations are working correctly. I haven’t tested a train with cars facing in both forward and reverse directions but the code is all written to handle it. It’s a lot of code for…

Continue reading
Computers & Programming

Working Single Unit Train

I have a working sample of the code I mentioned in an older blog post. I have a self-propelled train car that moves along any unending track layout. When the front wheels of the train car passes over a turnout, a random choice is made by this train…

Continue reading
Computers & Programming

Railroad Train Movement

I wrote some code and then had an epiphany. A minor one but one that made me realize I had approached something in the wrong way. It was not much code and can be reused with the new idea. First, the requirement is that the train move in…

Continue reading
Computers & Programming

Railroad Game Realism

I just figured out why the concept of realistic train management was giving me trouble. I really hadn’t tried to figure it out in any detail before and as soon as I did, the problems became obvious. First A real railroad can do things that would be considered…

Continue reading
Computers & Programming

Set Visual Studio Caption

I am providing this code in C# for a Visual Studio 2010 add-in to set the caption of the Visual Studio window based on information in the solution. All of the other code samples I found, all two of them, are only partially usable. My VS Solution always…

Continue reading
Computers & Programming

Miscellaneous Programming Projects

I’ve been thinking about various computer programing projects for years. One is a railroading game that focuses on realistic track building and realistic operations or a small (shortline) railroad. Another is an evolution simulation. There is also the mechanism simulator that I have working fairly well. The thing…

Continue reading
Computers & Programming

Data Structures

I’ve been staring at the code I wrote for the train game for a few days now. I can’t figure out my own code although I know why things are the way they are. The test program, which is really just a program to allow me to draw…

Continue reading