Rewriting Code

When I was younger, I used to play a text game online. You would play with other people, get better units, the classic game. It was so cool. I was able to get my hands on the code, and wanted to replicate a version for myself. Little did I know the game was based on some weird PHP settings and the code looked like this.

Extremely Ugly, and Hard to Follow Code

Extremely Ugly, and Hard to Follow Code

So as it would not work, I have setout to rewrite it into an exceptable format. I am writting this into a MVC type framework. This website code is extremely mess, even the directory structure. The images and the PHP and the configuration are all in the root directory. So far I have reconstructed a small part of the base, but it is really hard as all this code is useless as you cannot follow it.

Cleaner code, that I am trying to rework.

Cleaner code, that I am trying to rework.

blog comments powered by Disqus