EX 45: You make a game

Is there any reason why instead of making a new game from scratch I can’t take the game I wrote for exercise 36 and refactor it from procedural to object oriented? The thing is 1,000 lines long and I know I can do it better now. It will actually be challenging making a room base class and then subclassing it out for specific rooms in the game, of which there are 9.

Probably not an issue. But focus on the code mechanics and thin out all the text noise.

You could totally do that.

A free service run by Zed A. Shaw for learncodethehardway.org.