Author Topic: Advent of Code  (Read 37785 times)

Re: Advent of Code
« Reply #700 on: December 13, 2018, 09:37:27 am »
(click to show/hide)

It's not the answer but it will lead you in the right direction, up to you whether you read it obviously.
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #701 on: December 13, 2018, 09:48:31 am »
Day 13 done.

(click to show/hide)

Looking forward to the first pseudo-assembly-language type question of 2018. I liked those from previous years.
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #702 on: December 13, 2018, 10:26:02 am »

(click to show/hide)

(click to show/hide)

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #703 on: December 13, 2018, 12:58:04 pm »
(click to show/hide)

It's not the answer but it will lead you in the right direction, up to you whether you read it obviously.
interesting idea. Will try that.
"By creating we think. By living we learn" - Patrick Geddes

Re: Advent of Code
« Reply #704 on: December 14, 2018, 08:17:01 am »
Day 14, part 2
(click to show/hide)
(click to show/hide)
Quote from: Kim
Paging Diver300.  Diver300 to the GSM Trimphone, please...

Re: Advent of Code
« Reply #705 on: December 14, 2018, 11:46:05 am »
(click to show/hide)
"Yes please" said Squirrel "biscuits are our favourite things."

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #706 on: December 14, 2018, 08:45:52 pm »
(click to show/hide)

It's not the answer but it will lead you in the right direction, up to you whether you read it obviously.
interesting idea. Will try that.
Been rather busy so AoC has been on hold.
(click to show/hide)

Now onward and upward.
"By creating we think. By living we learn" - Patrick Geddes

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #707 on: December 14, 2018, 10:48:23 pm »
(click to show/hide)
"By creating we think. By living we learn" - Patrick Geddes

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #708 on: December 15, 2018, 10:48:14 am »
(click to show/hide)
"By creating we think. By living we learn" - Patrick Geddes

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #709 on: December 15, 2018, 10:52:38 am »
Day 15. It has taken so long to read the question and it will be a long time to code. Other things to do so I might come back to it later. Trying to think of how I can avoid calculating a shortest path every time, though it is easy to only calculate one per round per enemy.

Later
"By creating we think. By living we learn" - Patrick Geddes

Re: Advent of Code
« Reply #710 on: December 15, 2018, 08:23:47 pm »
Oof, hungover and family around but managed to get Day 15 done.

Hours. Hours and hours. Oof.

Will rework it tomorrow if/when I have time.
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #711 on: December 16, 2018, 03:12:29 pm »
Day 16: Wasted far too long chasing a silly bug in the implementation of one of the opcodes which made part (a) give the wrong answer.

Guessed at what part (b) would be so implemented part (a) in a way that would make it easier without a load of rework.
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #712 on: December 16, 2018, 04:29:02 pm »
My code for Day 15's horrible. Lots of nested loops with break-outs, inline functions and branches. Eugh.   ::-) ;D
(click to show/hide)
It is what it is. It's not what it's not, so it must be what it is.

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #713 on: December 16, 2018, 08:29:08 pm »
Horrible cold so I have put day 15 and 16 on hold for the moment. Will return when my brain does.
"By creating we think. By living we learn" - Patrick Geddes

Re: Advent of Code
« Reply #714 on: December 16, 2018, 11:52:23 pm »
My code for Day 15's horrible. Lots of nested loops with break-outs, inline functions and branches. Eugh.   ::-) ;D
(click to show/hide)
(click to show/hide)
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #715 on: December 17, 2018, 11:52:29 am »
Missing something in Day 17. Part (a) answer is correct but part (b) is wrong and can't see why.

(click to show/hide)
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #716 on: December 17, 2018, 02:31:07 pm »
My code for Day 15's horrible. Lots of nested loops with break-outs, inline functions and branches. Eugh.   ::-) ;D
(click to show/hide)
(click to show/hide)

(click to show/hide)
It is what it is. It's not what it's not, so it must be what it is.

Re: Advent of Code
« Reply #717 on: December 17, 2018, 03:47:48 pm »
Day 15: Some people go a little over the top on their visualisations:

https://www.reddit.com/r/adventofcode/comments/a6sej7/day_15_unity_visualization/
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #718 on: December 17, 2018, 08:54:55 pm »
(click to show/hide)
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #719 on: December 18, 2018, 10:21:45 am »
Nice to have a relatively simple one again today. Lucky as I have lots of real work to do!
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #720 on: December 19, 2018, 09:42:32 am »
I suppose I did ask for a psuedo assembly language one.

(click to show/hide)
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #721 on: December 20, 2018, 07:05:16 pm »
(click to show/hide)
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #722 on: December 21, 2018, 11:19:37 am »
Interesting one today, but a bit of a slog to the answer.

(click to show/hide)

The recent challenges have seemed harder than in recent years, I wonder if this is responsible for, what looks like, a drop in participation.
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #723 on: December 21, 2018, 11:57:09 am »
Also liked this touch:

"Clearly, the Elves who wrote this system were worried that someone might introduce a bug while trying to emulate this system with a scripting language."

(click to show/hide)
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #724 on: December 21, 2018, 12:00:10 pm »
Still stuck on day 17, havent' tried any subsequent ones - have had to go out to the shops for new jelly and nails as I keep running out, and start again in a new room with a fresh ceiling.
It is what it is. It's not what it's not, so it must be what it is.