Skip to content

Algorithm-Arena/weekly-challenge-6-pretty-shape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Weekly Challenge #6 - Pretty Shape

For this challenge, you need to implement a program that takes in some code and a shape and pretty prints the code to look like the shape. The idea of this challenge is to play around layout algorithms and code formatting. There is no constraints in terms of programming language or kind of shapes to output.

image

Winners:

  • The winner of $100 is "Who Needs Prettier When You Have CSS?" by @aqandrew. The solution for the problem is just 🤯. I would have never thought about using CSS shape masks to be able to reformat your code. 👏👏👏 #1
week6-1.mov
  • The second place of $35 goes to "Code Shape Up" by @luisperezphd. It is an extremely well executed implementation of the challenge. I especially love the "one last thing" at the end of the video! #7

  • The third place of $15 goes to "prettyPerson" by @nicogs. Formatting your code based on your profile on your webcam is hillarious. I kind of want to try to code using this just for fun. #6

week6-3.mp4
  • An honorary mention goes to "Format anything" by the first team of the challenge: @seanyang0813, @alexc19113800 and @kevinjzhang! Really cool use of SegmentAnything to be able to pick any image and get the shape you want. #5
week6-4.mp4
  • An honorary mention goes to "Night Mountain CSS Shapify" by @nikpundik. I loved how there are empty comments /**/ added to represent the stars. This is so creative! #3

  • An honorary mention goes to "🎄ChristmaSSier🎄— an opinionated CSS formatter" by @sompylasar. Such a good idea to have the * selector be the star of the christmas tree built with CSS. All the rules are re-ordered to fit pattern. #2

  • An honorary mention goes to "Pretty print" by @evgenyvinnik. The biggest challenge is to figure out what to do with the overflow, the solution came with a unique twist resizing the text until it fits! #4

week6-6.mp4

Prizes:

  • Winner: $100
  • 2nd: $35
  • 3rd: $15

Rules:

  • The winners will be evaluated based on how creative and interesting the solution is. @vjeux has full discretion on how the winners are selected.
  • Multiple people can work on a single submission. If it wins, the reward will be split based on the team preferences.
  • If a winner doesn't want to take the money, it'll be reinjected in the next week prize pool.
  • The solution must be open sourced.
  • There are no restrictions in terms of tech stack.

How to submit a solution:

  • Deadline to submit is Sunday Febrary 25th evening at Midnight PST (US West Coast).
  • Open an issue on this repo titled "Submission - <Name of your submission>"
  • It must contain a short video showing the submission in action
  • It must contain an explanation on how to try it
  • It must contain a link with the source code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published