Spring Break Hackathon Day Six
Thursday bring more development for RubyTet, and nothing else for the other projects, again. This time, I completed making the transition to the new algorithm and files based configuration of shapes. Much of the old codebase has already been ripped out. That mean all the l.rb, o.rb, etc are pretty much empty files.
However, there’s also a major gameplay change in how rubytet work. Previously, there is a restriction in moving right on the right boarder or moving left on the left boarder. Now, there is none. If you move left, you simply go up, and if you move right, you simply move down. This reflect the true nature of the data structure beneath. You see, rubytet just have one dimensional array! So if you move down directly, you simply do 10+. Move left, you do -1. Move right, you simply do +1. However, everything has to be moved in term of x and y. To solve that, I previously wrote an aglorithm that recalculate the positions every time it moved. This just mean one proportion of the codebase is gone, just like that.
I also encountered a bug with the graphics. This bug lead me to believe that there is something wrong with the code. Once I noticed that, I simply fixed it. Now, there is no more false positive!
Day seven will bring still more cleanup and start bringing development of RubyTet to a close. I predict a weekend release is imminent for this project.

Leave a Reply