Advent of Code(x) | Day 2 - Python | Using OpenAI's Codex to solve Advent of Code

preview_player
Показать описание
Day 2 was a big surprise because just copy-pasting the instructions into a comment and then the func signature did the trick.

This is the prompt that worked -

--------------------------------------------------------
# [instructions]
# [instructions]

import
--------------------------------------------------------

In this series of recordings I'll be solving the Advent of Code 2021 challenges using a no-code setup: OpenAI's Codex for solving, and the browser-based IDE Replit for testing the solution.

The purpose is to show what writing code using no-code tooling and Prompt Engineering is like, so the focus is on the OpenAI Playground for getting the solution, and minimal code debugging.
Codex supports multiple languages, so I'll be using a different language each. Thanks to the web IDE there is no need for setting up any environment, hooray!

Resources:

Follow me on Twitter:
Рекомендации по теме
Комментарии
Автор

Could it be that somebody's Advent of Code answers were in the Codex training dataset?

SebPaquet