Skip to content

An entry in Git Game-off 2012: Write code as fast as you can, keep up your code quality, and avoid bugs to earn the most points!

License

Notifications You must be signed in to change notification settings

gilesa/codergraph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coder Graph

Write code as fast as you can to earn the most points! But keep an eye on the code quality, for the lower it is, the more bugs will appear and the less points you'll receive. If it reaches zero, you must revert to your last commit or start again.

Running the Game

Open index.html in any HTML5 compliant browser.

Goal

Complete the required lines of code without letting the quality meter reach zero.

Controls

Use the arrow keys to move the arrow around the screen.

How To Play

Write lines of code

Increase your lines of code by moving in the main coding area, designated by the wavy lines. While you are in this area, your lines of code will increase, but your quality of code will also decrease.

Refactor Zone

Use this area to restore your quality of code. This area is at the top of the screen and designated by the straight lines. While you are in this area, your lines of code will fluctuate slightly up and down and your quality of code will increase.

Committing

Committing creates save points which you can revert to later if you end up running out of code quality. To create a new commit, position your arrow on the commit line and don't move up or down (side to side is fine). The commit line is the border between the two zones, designated by a black line.

Bugs

Avoid these at all costs. Touching one will cause a large decrease in the quality of your code. Their spawn rate is related to the code quality, so you must be very careful when it gets low, since more bugs will spawn. They are represented by black and white rectangles.

Scoring

Your score is calculated using five factors:

  • lines of code
  • average quality
  • time
  • commits
  • reverts

To achieve a high score, aim for a high average quality, low time, high commits, and low reverts.

Credits

Built using gamejs and jquery.

All other code and images created by Andrew Giles, with exception to:

About

An entry in Git Game-off 2012: Write code as fast as you can, keep up your code quality, and avoid bugs to earn the most points!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%