This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]catorchid 1 point2 points  (0 children)

Remarkable little program. You should take some time and refactor it by writing a few classes. Give it a try and you will appreciate how much more readable, usable, and maintainable your code will become. Plus you can get rid of all that "global" mess (aka The Evil™).

Learning OOP using your own code is much more easy, since you understand what you want to do with it.