Skip to content

Challenges and solutions for UofG Code Golf Night, November 17th 2016!

Notifications You must be signed in to change notification settings

FrazerSeymour/Code-Golf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Code Golf Questions

Code Golf - C Division

  • Given a bunch of strings in argv, store them sorted alphabetically in an array.

Scoring: Total bytes of code.

Leader: Nick B., 103 bytes.

Code Golf - Open Division (Any language, standard libraries)

  • Draw a balanced tree of arbitrary depth. E.g., for 3:
   /\
 /\  /\
/\/\/\/\

Scoring Total bytes of code.

Leader: Jason A., 90 bytes

Regex Golf

  • Write the shortest regex expression that matches everything in List A (the required courses for CS and SENG at UofG) but not in List B (the required courses for Studio Art at UofG).
  • Must be recognizable by grep - testable online here.

Scoring: Total bytes of code.

Leader: Nick B., 27 Bytes

Vim Golf

Scoring: Total bytes of code.

Web Golf - CSS

  • Reimplement Google's home page..
    • This includes:
      • Button formatting/highlight states
      • The textbox highlight state.
      • Responsive design - not hardcoded widths.
    • This does not include:
      • The stuff top right.
      • The microphone widget thing.

Scoring: Total bytes of code, including both HTML and CSS.

Web Golf - Leftpad Division

  • Implement a simple calculator, using the most external frameworks and least amount of glue code.
    • 10 digit buttons, a display box, four operation buttons, and an equals button.
    • Frameworks must be actually used to derive your result or power your app.

Scoring: Bytes of code that aren't configuring/importing frameworks, minus one bytes per framework used. (subject to change)

Web Golf - Vanilla JS Division

  • Implement a web page where a 150px square floats across the screen.
    • When it hits an edge, it reflects at a 45 degree angle, and changes colour.
    • The colours are straight red, blue, and green. (#ff0000, #00ff00, #0000ff)
    • This must work on any screen size.

Scoring: Total bytes of code.

Leader: Evan B., 515 Bytes

CIS 1500 A3

Scoring: Total bytes of code.

Leader: Ace P., 966 bytes.

About

Challenges and solutions for UofG Code Golf Night, November 17th 2016!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published