Greetings, programs!
This is a web game based on TRON universe. Every repository on GitHub can be a TRON character (sam, clu, flynn, tron, etc.) and may fight against other repositories.
The score is based on:
- number of commits
- repository size
- number of forks
issues instead will be subtracted to the main score of your repository. The avatar is generated based on your repository stars, more stars it gets more important is the character generated 😎 Winner is chosen randomly according to the higher score of the two programs fighting.
Beware the program who loses will be subject to immediate deresolution!
These are just a few achievements you can unlock in Gitron.
Achievement | ✨ |
---|---|
THE GRID | Enter The Grid |
FOUND ZUSE | Find a way to see Zuse (the guy with the white hair) |
ISOMORPHIC | Discover and ISO |
PURGE | Dereze an ISO |
TRON LIVES | Is Tron still alive? |
FAITH IN USERS | Dereze the poor Jarvis |
BETRAYAL | When Clu 2 derezzed Tron |
END OF LINE | Destroy Master Control Program |
THE CREATOR | ??? |
This app is written in Ruby using Sinatra.
gem install octokit
git clone git://github.com/syxanash/gitron
bundle install
ruby app.rb
Here listed a few things I used for developing this project.
- github-high-scores by Lee Reilly. I was highly inspired by his work.
- Sinatra a Ruby web framework
- noty jquery notification plugin
- magic a couple of very nice CSS3 animations I used
- github API
- Fetching the number of commits for a repo has a few problems, I need to get the number of commits without wasting too many requests per hour.
- Sometimes a wild
undefined method `[]' for nil:NilClass
appears. - MCP apparently is still alive…
🐰
- look up for the source code if you're interested
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
This is just a summer project I developed after finishing a few exams for university. I really hope you like it as much as I liked creating it!
Let's see if your programs are lucky enough to fight for his own user.