Skip to content

Advent of Code solution. Utilizes tVOS and SwiftUI to "decipher" the password with a look popularized in pseudo-hacker shows/movies.

Notifications You must be signed in to change notification settings

theevo/AoC2016-D02

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Advent of Code 2016 Day 2

https://adventofcode.com/2016/day/2

A solution by Theo Vora (@theevo)

Video

Video demo - YouTube

Key Tech

  • tvOS
  • SwiftUI
  • OperationQueue

About

I animated the deciphering of a secret code on Apple TV.

adventofcode.com has a bunch of code puzzles to solve. This puzzle from 2016 Day 2 requires you to determine the answer of a 5 character password. The input file needed to decipher the password is over 2000 characters long!

I solved the puzzle using Swift as my programing language but to make the presentation more interesting, I built the app with tvOS. I was going for the look of pseudo-hacker movies or TV shows where you can "see" the code has it's being unscrambled.

Funny fact: I had to slow the unscrambling down by a factor of 66. Otherwise, you'd never see the code being unscrambled. The computer is so fast that it can crunch through all that work by the time you lift your finger off the play button!

How to Run

  1. Clone/Download
  2. Open AoC2016-D02.xcodeproj
  3. ⌘R to run
  4. Output will appear in Simulator.
  5. Press play to see the solution.

About

Advent of Code solution. Utilizes tVOS and SwiftUI to "decipher" the password with a look popularized in pseudo-hacker shows/movies.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages