Skip to content

kittykg/pyvent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyvent of Code

2025: PhD thesis season (ddl on Jan 6th 🙃) so Python only to start with...

2024: Trying to get solution fast so I beat my friends in our private leader board. Also realised using python to check for correct answer and actually parse input for Prolog works pretty well lol.

2022 & 2023: Lazy ass me can't bother to write Prolog and actually want to finish advent of code for once (cri). Maybe will do more Prolog, check my ADVOCad0.

Status

2025

IT'S DONE BUT ALSO NOT DONE BC I DIDN'T USE PROLOG THIS YEAR AT ALL 🥲

Language Progress Bar
Python 12 / 12 2025-python
Prolog at ADVOCad0 0 / 12 2025-prolog

2024

FOR THE FIRST TIME I'VE DONE IT

Language Progress Bar
Python 25 / 25 2024-python
Prolog at ADVOCad0 13.5 / 25 2024-prolog

Prolog Notes:

  • Finally committed and learned DCG (POG)

  • Day 6 part 2 takes 2.5 hrs to run lol

  • Day 7 takes in total 14.8 s to run (compared to combinatorial python's 19.1s POG)

  • Not happening

    • Day 9 -- I did too much mutation in python, don't think it will translate well in Prolog 🥲

    • Day 15 -- 2D array moving boxes? NOPE 🙃

    • Day 16, 18 -- Dijkstra? I don't want to 🙃

    • Day 20 -- I don't want to 🙃

  • Maybe??? If I have time

    • Day 14 part 2 -- checking 🎄, not sure I want to do it lol

    • Day 17 -- might be doable

    • Day 25 -- def doable for the logic bit, not sure about the parsing lol

2023

Language Progress Bar
Python 22.5 / 25 2023-python
Prolog at ADVOCad0 9.5 / 25 2023-prolog

Python Solution Missing:

  • Day 12 Part 2
  • Day 17
  • Day 21 Part 2
  • Day 25 Part 2 (locked...)

Prolog Solution Missing:

  • Day 3: not doing in Prolog for sure 🙃
  • Day 5 Part 2: not working 🥲
  • Missing day 12 onwards...

2022

Language Progress Bar
Python 19 / 25 2022-python
Prolog at ADVOCad0 12 / 25 2022-prolog

Python Solution Missing:

  • Day 19, 21 and onwards

Prolog Solution Missing:

  • Day 11, 12, 14, 16, 17, 18, 19, 20
  • Definitely not doing day 17 (tetris) and 18 (convolution) in Prolog 🤡

Requirements

Python version 3.11+ for the nice Self in typing ; P

Other packages:

  • black (for the STRICTEST FORMATTING)

  • networkx (for some graph analysis)

  • numpy (for some 2D array manipulation)

  • scipy (for convolution)

  • shapely (for polygon analysis)

  • sympy (for some equation solving)

Honourable Mention: My Memes

2022 Day 16 - My cheat solution hehe

About

Lazy me can't write Prolog fast enough

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages