kestrelsnest-blog/public/posts/2022-11-30-solving-puzzles-with-code/index.html

152 lines
10 KiB
HTML
Raw Normal View History

2022-12-03 19:26:48 +00:00
<!doctype html>
<html lang="en-us">
<head>
<title>Solving Puzzles with Code // Kestrel&#39;s Nest</title>
<link rel="shortcut icon" href="favicon.ico" />
<meta charset="utf-8" />
<meta name="generator" content="Hugo 0.105.0">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="author" content="Eric Wagoner" />
<meta name="description" content="" />
<link rel="stylesheet" href="/css/main.min.094178a756796576f886abd7963ac38503256532ad258acaed956b7f683180f4.css" />
<script data-goatcounter="https://kestrelsnest.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Solving Puzzles with Code"/>
<meta name="twitter:description" content="The Advent of Code is upon us once again. Every year Eric Wastl weaves together a daily series of clever challenges into a delightful story. They can be solved in any language and method you want, including brute force, and I look forward to it every December.
Which is an odd thing to say maybe considering I&rsquo;ve never made it further than a dozen days in. It just seems like every year the work project I&rsquo;m on catches fire and needs my full attention and my drive to work on coding challenges for fun just fizzles out."/>
<meta property="og:title" content="Solving Puzzles with Code" />
<meta property="og:description" content="The Advent of Code is upon us once again. Every year Eric Wastl weaves together a daily series of clever challenges into a delightful story. They can be solved in any language and method you want, including brute force, and I look forward to it every December.
Which is an odd thing to say maybe considering I&rsquo;ve never made it further than a dozen days in. It just seems like every year the work project I&rsquo;m on catches fire and needs my full attention and my drive to work on coding challenges for fun just fizzles out." />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://blog.kestrelsnest.social/posts/2022-11-30-solving-puzzles-with-code/" /><meta property="article:section" content="posts" />
<meta property="article:published_time" content="2022-12-01T03:10:01+00:00" />
<meta property="article:modified_time" content="2022-12-01T03:38:00+00:00" />
</head>
<body>
<header class="app-header">
<a href="https://blog.kestrelsnest.social"><img class="app-header-avatar" src="/face.jpg" alt="Eric Wagoner" /></a>
<span class="app-header-title">Kestrel&#39;s Nest</span>
<nav class="app-header-menu">
<a class="app-header-menu-item" href="/">Home</a>
-
<a class="app-header-menu-item" href="/tags/">Tags</a>
-
<a class="app-header-menu-item" href="/now/">Now</a>
</nav>
<p>Links, thoughts, &amp; what-not from Athens, GA.</p>
<div class="app-header-social">
<a href="https://ericwagoner.com" target="_blank" rel="noreferrer noopener me">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-home">
<title>Home</title>
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>
</svg>
</a>
<a href="https://toots.kestrelsnest.social/@eric" target="_blank" rel="noreferrer noopener me">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-message-circle">
<title>Mastodon</title>
<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>
</svg>
</a>
<a href="https://pix.kestrelsnest.social/@eric" target="_blank" rel="noreferrer noopener me">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-camera">
<title>Pixelfed</title>
<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>
</svg>
</a>
<a href="https://facebook.com/ewagoner" target="_blank" rel="noreferrer noopener me">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-facebook">
<title>Facebook</title>
<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>
</svg>
</a>
<a href="https://youtube.com/ewagoner" target="_blank" rel="noreferrer noopener me">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-youtube">
<title>YouTube</title>
<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>
</svg>
</a>
<a href="https://www.linkedin.com/in/wagonereric/" target="_blank" rel="noreferrer noopener me">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-linkedin">
<title>LinkedIn</title>
<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>
</svg>
</a>
<a href="https://github.com/ewagoner" target="_blank" rel="noreferrer noopener me">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-github">
<title>Github</title>
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
</svg>
</a>
<a href="mailto://eric@ericwagoner.com?subject=Blog" target="_blank" rel="noreferrer noopener me">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-mail">
<title>Email</title>
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>
</svg>
</a>
</div>
</header>
<main class="app-container">
<article class="post">
<header class="post-header">
<h1 class ="post-title">Solving Puzzles with Code</h1>
<div class="post-meta">
<div>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-calendar">
<title>calendar</title>
<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>
</svg>
Dec 1, 2022
</div>
<div>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-clock">
<title>clock</title>
<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>
</svg>
2 min read
</div>
<div>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tag">
<title>tag</title>
<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>
</svg>
<a class="tag" href="https://blog.kestrelsnest.social/tags/coding/">coding</a>
<a class="tag" href="https://blog.kestrelsnest.social/tags/tooling/">tooling</a>
<a class="tag" href="https://blog.kestrelsnest.social/tags/jobbyjob/">jobbyjob</a>
</div>
</div>
</header>
<div class="post-content">
<p>The <a href="https://adventofcode.com">Advent of Code</a> is upon us once again. Every year Eric Wastl weaves together a daily series of clever challenges into a delightful story. They can be solved in any language and method you want, including brute force, and I look forward to it every December.</p>
<p>Which is an odd thing to say maybe considering I&rsquo;ve never made it further than a dozen days in. It just seems like every year the work project I&rsquo;m on catches fire and needs my full attention and my drive to work on coding challenges for fun just fizzles out.</p>
<p>I&rsquo;m fully expecting it to be true this year, too. I just started a new project this week, and the whole reason I&rsquo;m here is they are short-staffed and under the gun to deliver a fully functional robot in three months, if not sooner. I&rsquo;ve already accepted the fact that it&rsquo;s going to ratchet up the pressure over the next few weeks and not loosen up for the holidays. I&rsquo;m ok with that.</p>
<p>Still, I&rsquo;m ready. I&rsquo;ve been wanting to loosen my reliance on GitHub (same as I&rsquo;m loosening my reliance on Twitter, Instagram, etc.) so this was the perfect time to try out <a href="https://gitea.io/en-us/">Gitea</a>. Programming is surprisingly social (especially coding challenges like AoC) so I spun up <a href="https://git.kestrelsnest.social/">git.kestrelsnest.social</a> and created a placeholder repo for <a href="https://git.kestrelsnest.social/eric/adventofcode2022">my 2022 solutions</a>. When the first puzzle lands at midnight, I&rsquo;ll be ready to go.</p>
<p>And if I only make it three days, that&rsquo;s ok.</p>
</div>
<div class="post-footer">
</div>
</article>
</main>
</body>
</html>