Advent Of Code (AoC) 2021Advent Of Code (AoC) 2021

Related tags

SwiftUI App AoC-2021
Overview

AoC-2021

swift workflow codecov Sonarcloud Status

Advent Of Code (AoC) 2021

This are my solutions to the Advent Of Code 2021 event. This year I've been playing along with timsearle and SFrost007, please check out their solutions if you're interested.

Project approach

This swift package manager project contains my MacOS command line tool, a framework with all of the logic to solve the puzzles and a test framework to validate against the AoC examples that are given in the puzzle descriptions.

The idea is to use the example problems/solutions provided in the puzzles to do TDD, but sometimes there are no examples that allow TDD.

There's a config.swift file hidden using git-secret. This is the format of the file:

import Foundation

enum Config {
    static let year = 2021
    // This is the session cookie from your browser after logging in to https://adventofcode.com/
    static let session = "[TOKEN]"
}

Running

To run day 1:

  • Either create a file called day1.txt with your puzzle input, or add your AoC session cookie to the code and it'll be created automatically
  • Then run swift run AoC 1 in Terminal

Implementation notes

Day 1

You might also like...
Source code for the TriviaGameApp

🧢 Shopping App tutorial Source code for the Shopping app built in the YouTube tutorial Access the written content here: Shopping app Part 1 Shopping

Companion app and XCode extension for adding SwiftUI recipes to your code.
Companion app and XCode extension for adding SwiftUI recipes to your code.

SwiftUI Recipes Companion Free Companion app and XCode extension for adding SwiftUI recipes to your code. Choose from a rich selection of SwiftUI reci

Ios-desde-cero - Code, documents and resources used in the Stream iOS from scratch
Ios-desde-cero - Code, documents and resources used in the Stream iOS from scratch

iOS desde cero ΒΏQuΓ© es esto? iOS desde Cero es un Streaming en πŸ‡ͺπŸ‡Έ sobre desarr

SwiftUI sample code for Apple's WWDC18 talk
SwiftUI sample code for Apple's WWDC18 talk "Designing Fluid Interfaces".

Fluid Interfaces SwiftUI SwiftUI sample code for Apple's WWDC18 talk "Designing Fluid Interfaces". What is Fluid Interfaces? Fluid Interfaces is a new

A macOS app for code generation, automation
A macOS app for code generation, automation

A macOS app for code generation, automation

Swift solutions for Advent of Code 2021

Advent Of Code Swift Template This repository serves as a template for an Xcode project set up to solve the Advent of Code problems in Swift. No attem

A Swift playgrounds with solutions of the Advent of Code 2021 challenge.

πŸŽ„ Advent of Code 2021 πŸŽ… A Swift playgrounds with solutions of the Advent of Code 2021. How to run Clone the repo and open the Playground in Xcode. S

AoC 2021 solutions (in Swift)

Advent of Code 2021 Solutions to the 2021 edition of Advent of Code in Swift. Day 0 Spent some time figuring out a good way to do this in Swift withou

A template to solve Advent of Code problems using Swift

Advent Of Code Swift Template This repository serves as a template for an Xcode project set up to solve the Advent of Code problems in Swift. No attem

πŸŽ„ Advent of Code ’21 solutions in Swift

Advent of Code '21 My solutions to this years Advent of Code challenge written in Swift. Content Day 1: Sonar Sweep solution Day 2: Dive! solution Day

[Deprecated] A shiny JSON parsing library in Swift :sparkles: Loved by many from 2015-2021
[Deprecated] A shiny JSON parsing library in Swift :sparkles: Loved by many from 2015-2021

🚨 Deprecation Notice 🚨 Gloss has been deprecated in favor of Swift's Codable framework. The existing Gloss source is not going away, however updates

Testing the new ShazamKit framework announced at WWDC 2021
Testing the new ShazamKit framework announced at WWDC 2021

ShazamKit Demo Using the ShazamKit framework announced at WWDC 2021 to perform song recognition. Demo Tweet Usage Open the project and change the Bund

My Winning Submission for Apple's WWDC 2021 Swift Student Challenge
My Winning Submission for Apple's WWDC 2021 Swift Student Challenge

Symmetries This playground book gives a quick insight into the symmetry groups of 3-dimensional objects like the platonic solids. The user can play ar

πŸŽ‰ WWDC 2021 Swift Student Challenge Winner πŸŽ‰ Dance Party allows users to record choreography and play against other users to try and match the key poses!
πŸŽ‰ WWDC 2021 Swift Student Challenge Winner πŸŽ‰ Dance Party allows users to record choreography and play against other users to try and match the key poses!

πŸ’ƒ Dance Party πŸ•Ί 🍎 WWDC 2021 Swift Student Challenge Winner πŸŽ‰ Installation Steps (Works on iPad Only) Clone or Download Unzip the .playgroundbook.z

This is example project for my presentation in iOSDC JAPAN 2021

Swift PM Project Example This is example project for my presentation in iOSDC JAPAN 2021. Package.swift based project management Multi Modules Multi P

InputMethodKit Sample App with macOS11, Xcode13, Swift5.5 in 2021.

What is this? This is a sample implementation of IMKit App with Swift/SwiftUI. Working Environment macOS 11.5 Swift 5.5 Xcode13 (beta) Procedure to ma

The concept won first place in the Design Concept Award contest Season 1 in 2021.
The concept won first place in the Design Concept Award contest Season 1 in 2021.

TallyCounter Developed by Vladyslav Fil as part of the You are launched "Design Concept Award" contest Season #1. Tally Counter Micro-Interaction demo

The concept took third place in the Design Concept Award contest Season 1 in 2021.
The concept took third place in the Design Concept Award contest Season 1 in 2021.

SpringAnimation Developed by Yurii Sameliuk as part of the You are launched "Design Concept Award" contest Season #1. SpringAnimation demo. Inspired b

Owner
Mike Bignell
Mike Bignell
The concept took second place in the Design Concept Award contest Season 1 in 2021.

SmileRate Developed by Alex Kryvodub as part of the You are launched "Design Concept Award" contest Season #1. SmileRate demo. Inspired by Duy Luong c

You are launched 1 Jan 12, 2022
SwiftUI JAM 2021

Riddikulus Problem Have you ever had to confront your greatest fear, and wish you could turn it into something that would make you laugh? Riddikulus i

Dylan Renard 0 Dec 5, 2021
MetroHacks project 2021

Splanner MetroHacks Project 2021 Devpost link: Devpost We made an app for Metrohacks 2021 that would show you your personal schedule with class names

null 1 Nov 22, 2021
SwiftUI Jam 2021 - iPad Realtime Calculator

SwiftUI Jam 2021 - iPad Realtime Calculator A SwiftUI iPad calculator with realtime activity Features Addition, Subtraction, Multiplication, Division

Joel Sereno 3 Jan 13, 2022
CS193p-2021 - Stanford University's course CS193p(Developing Applications for iOS using SwiftUI)

?? Stanford University's course CS193p - 2021(Developing Applications for iOS us

Oleksii Dziubenko 2 Dec 18, 2022
Glow Weather app source code

Glow-Weather Weather & air quality application created with a glow theme. This weather app uses APIs from weatherapi.com, and allows users to search t

Nate Lee 2 Nov 30, 2021
This repository contains code for building Universal Apps with SwiftUI.

MindLikeWater This Repo This repository contains code for building Universal Apps with SwiftUI. The same codebase can be compiled to produce binaries

Jorge D. Ortiz Fuentes 1 Nov 23, 2021
The demo project to show how to organize code to make SwiftUI apps easy to be test.

TestableApp I combined the idea to use functional programming instead of an loader instance in ModelView(I prefer to think of it as a service) and Res

VictorK 2 Jan 7, 2022
Source code for the BiometricsAuthenticationApp

Source code for the BiometricsAuthenticationApp

Stephanie Diep 3 Oct 26, 2022
WeatherApp - this is weather app based on AppBrewery code from bootcamp (but upgraded)

WeatherApp What was created Based on App Brewery code I've made a beautiful, dark-mode enabled weather app. It's possible to check the weather for the

Ewelina Mijal 0 Dec 30, 2021