Author Topic: Advent of Code  (Read 112396 times)

Re: Advent of Code
« Reply #550 on: 19 December, 2017, 04:39:13 pm »
but
Code: [Select]
   A|BC
   ++++
isn't unless you look further afield than immediately adjacent characters. I couldn't be bothered so just wrote a prompt in to look at it by eye and indicate where it should go

If you're coming down from A then it's unambiguous. You go down, turn left (as you can't turn right), to the end of that line (because you only turn when you can't continue straight on) and then the only choice is to turn left (up) to get to C.

Likewise coming down from C is unambiguous (C down, right, all the way to the end, right and up to A).

Coming down from B is ambiguous as you have a choice of which way to turn, but my reading of the instructions was that this was not going to occur since it didn't say what to do in such cases.
"Yes please" said Squirrel "biscuits are our favourite things."

Oaky

  • ACME Fire Safety Officer
  • Audax Club Mid-Essex
    • MEMWNS Map
Re: Advent of Code
« Reply #551 on: 19 December, 2017, 06:01:01 pm »

(click to show/hide)

(click to show/hide)

(click to show/hide)

(click to show/hide)
You are in a maze of twisty flat droves, all alike.

85.4 miles from Marsh Gibbon

Audax Club Mid-Essex Fire Safety Officer
http://acme.bike

Re: Advent of Code
« Reply #552 on: 19 December, 2017, 06:37:09 pm »
(click to show/hide)

(click to show/hide)

[EDIT] Sorry, I keep editing the above, we need a YACF-AOC Slack channel. I've created one but would this be a good idea or do people want to keep the discussion here?
"Yes please" said Squirrel "biscuits are our favourite things."

Oaky

  • ACME Fire Safety Officer
  • Audax Club Mid-Essex
    • MEMWNS Map
Re: Advent of Code
« Reply #553 on: 19 December, 2017, 07:33:41 pm »
I'd join a Slack channel.

(click to show/hide)
You are in a maze of twisty flat droves, all alike.

85.4 miles from Marsh Gibbon

Audax Club Mid-Essex Fire Safety Officer
http://acme.bike

Oaky

  • ACME Fire Safety Officer
  • Audax Club Mid-Essex
    • MEMWNS Map
Re: Advent of Code
« Reply #554 on: 19 December, 2017, 07:50:26 pm »
(click to show/hide)
You are in a maze of twisty flat droves, all alike.

85.4 miles from Marsh Gibbon

Audax Club Mid-Essex Fire Safety Officer
http://acme.bike

Re: Advent of Code
« Reply #555 on: 19 December, 2017, 09:01:02 pm »
(click to show/hide)
"Yes please" said Squirrel "biscuits are our favourite things."

Ben T

Re: Advent of Code
« Reply #556 on: 19 December, 2017, 09:31:20 pm »
(click to show/hide)

(click to show/hide)
(click to show/hide)

Re: Advent of Code
« Reply #557 on: 19 December, 2017, 10:43:52 pm »
(click to show/hide)
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #558 on: 20 December, 2017, 09:10:49 am »
Relatively simple today (day 20).

(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 #559 on: 20 December, 2017, 12:49:43 pm »
I must have something wrong with my iterations as it is taking a long time and not finding collisions.
(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 #560 on: 20 December, 2017, 01:23:20 pm »
*blush* Silly bug. Not updating z coordinate. Now solved.
"By creating we think. By living we learn" - Patrick Geddes

Re: Advent of Code
« Reply #561 on: 20 December, 2017, 01:59:44 pm »
Day 20
First part was solved with one run through the data.
(click to show/hide)
Quote from: Kim
Paging Diver300.  Diver300 to the GSM Trimphone, please...

Re: Advent of Code
« Reply #562 on: 20 December, 2017, 02:17:00 pm »
Day 20
First part was solved with one run through the data.
(click to show/hide)

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

Re: Advent of Code
« Reply #563 on: 20 December, 2017, 02:47:23 pm »
Day 20
First part was solved with one run through the data.
(click to show/hide)

(click to show/hide)
True. I'm not claiming that my algorithm for part 1 would work with all possible inputs.
Quote from: Kim
Paging Diver300.  Diver300 to the GSM Trimphone, please...

Oaky

  • ACME Fire Safety Officer
  • Audax Club Mid-Essex
    • MEMWNS Map
Re: Advent of Code
« Reply #564 on: 20 December, 2017, 03:10:29 pm »
(click to show/hide)
You are in a maze of twisty flat droves, all alike.

85.4 miles from Marsh Gibbon

Audax Club Mid-Essex Fire Safety Officer
http://acme.bike

Re: Advent of Code
« Reply #565 on: 20 December, 2017, 03:47:55 pm »
(click to show/hide)
"Yes please" said Squirrel "biscuits are our favourite things."

Re: Advent of Code
« Reply #566 on: 20 December, 2017, 07:47:45 pm »
(click to show/hide)
Quote from: tiermat
that's not science, it's semantics.

Re: Advent of Code
« Reply #567 on: 20 December, 2017, 09:06:48 pm »
Day 20 b
(click to show/hide)
Quote from: Kim
Paging Diver300.  Diver300 to the GSM Trimphone, please...

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #568 on: 20 December, 2017, 09:39:18 pm »
(click to show/hide)
"By creating we think. By living we learn" - Patrick Geddes

Re: Advent of Code
« Reply #569 on: 20 December, 2017, 10:27:04 pm »
(click to show/hide)
"Yes please" said Squirrel "biscuits are our favourite things."

Ben T

Re: Advent of Code
« Reply #570 on: 20 December, 2017, 11:50:29 pm »
 how have you all identified the state where won't be any more collisions for part b, ( or changes in closest to origin for a)?
Did you identify merely a point at which there probably won't be any more or that there can't possibly be?
(click to show/hide)

Re: Advent of Code
« Reply #571 on: 21 December, 2017, 08:50:04 am »
Day 21 looking meaty...

(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 #572 on: 21 December, 2017, 09:23:33 am »
Definitely requiring more thought. First time this year in the top 1000

(click to show/hide)
"By creating we think. By living we learn" - Patrick Geddes

Re: Advent of Code
« Reply #573 on: 21 December, 2017, 09:54:57 am »
Day 21.

Correct answer for part (a), wrong answer for part (b).

The madness begins.
"Yes please" said Squirrel "biscuits are our favourite things."

David Martin

  • Thats Dr Oi You thankyouverymuch
Re: Advent of Code
« Reply #574 on: 21 December, 2017, 10:17:42 am »
Off by one in your iteration count?
"By creating we think. By living we learn" - Patrick Geddes