Category

Computers & Programming

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
Computers & Programming

Maintaining Old Code

Maintaining old code is what I do at work most of the time. If there is a new feature to be added to the product, there will still be a large amount of existing code that needs to be waded through to get to the places where the…

Continue reading
Computers & Programming

GDI, GDI+, and GLUT

I’ve been messing around with that evolution simulation code. There’s a few things in the code that I don’t yet understand but that’s common when trying to understand the inner workings of code you didn’t write. For instance, some values related to behavior rules are initialized using random…

Continue reading
Computers & Programming

Evolution Simulation

Thanks to Andrej Karpathy, I have code that simulates evolution. He wrote code that has a population of herbivores and carnivores and they have inputs and behaviors that are complex and can evolve. The physical attributes cannot evolve and each creature is fixed with sign and hearing and…

Continue reading