Thursday, May 10, 2007
Kaiser
Since it seems like I will be sufferring a lack of inspiration for an indefinite period of time, I have started a Kaiser game. I need to practice figuring out logic and stuff anyway. This time, to try to get the logic somewhat correct for the computer players, I am writing tests for things I need the code to be able to do and then writing the code to do it. I know this is how you are supposed to code anyway but the City Builder project ended up with the majority of the code in a controller and could not be easily tested (not that that's an excuse, but since it was just for me I kinda slacked). This time I'm trying to keep the code isolated in a class and independent of variables in the controller. That will make it easier to write tests and it will make it easier to change the interface without losing all the code if I should need/want to later. I'm kinda trying to concentrate on getting the code I need to make it functional first and then I can concentrate on the user interface. See if I can't get some good enough graphics to appeal to some of the more seasoned players.
Subscribe to:
Posts (Atom)