Monthly Archives

January 2011

Computers & Programming, Railroad Game

Path Finding

I was having trouble finding a path. Well, I was actually having trouble programming the path finding algorithm for the railroad game. I’ve never written something like this and what I threw together originally was just wrong. There are a few requirements that exist in this game that…

Continue reading
Computers & Programming

File Input and Output

I’ve decided to add file IO to my railroad game program. As always, every thing I do requires some new way to look at things. MFC provides serialization and I’m using MFC at the moment. The program only uses it for the user interface until now. Serialization is…

Continue reading
Computers & Programming

MFC Fun

The Microsoft Foundation Classes are fairly useful. I don’t have experience with any other framework for comparison but MFC it better than writing all of the message handling code by hand. The problem with MFC is that they give you plenty of rope to hang yourself. I’m adding…

Continue reading
Computers & Programming, Railroad Game

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