This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-13
Channels
- # adventofcode (51)
- # announcements (1)
- # babashka (7)
- # beginners (45)
- # berlin (2)
- # bristol-clojurians (1)
- # calva (38)
- # cider (2)
- # clara (25)
- # clj-kondo (2)
- # cljs-dev (25)
- # cljsrn (3)
- # clojure (112)
- # clojure-dev (6)
- # clojure-europe (5)
- # clojure-nl (1)
- # clojure-spec (15)
- # clojure-uk (93)
- # clojurescript (29)
- # clojutre (2)
- # core-async (78)
- # cursive (24)
- # datomic (29)
- # figwheel-main (1)
- # fulcro (50)
- # hugsql (1)
- # hyperfiddle (1)
- # luminus (1)
- # malli (26)
- # off-topic (40)
- # portkey (12)
- # reagent (22)
- # ring-swagger (1)
- # shadow-cljs (56)
- # spacemacs (24)
- # tools-deps (68)
just to confirm: We start with a stackoverflowerror? or am I broken?
😞 Thanks!
I was gonna add controls, but I discovered having a three-pixel margin of error just isn't that much fun 😛
Maybe if I have it only increment when you click a button instead of on every frame
http://quil.info/sketches/show/f35ebdfb776bb34d65a82c6d6599b4f3991d93dc80a880123f929e2cda836a64
got my own visualization too!
"||||||||||||||||||||||||||||||||||||||
| |
| # # ## # ## ## # # ##### # # |
| ## # ## ## ## # #### #### # # |
| #### ## ## ## ## ###### ## # # |
| ########## ## ## #### ## ## # |
| ## ## ### # # ### # # # # |
| # ## # ## # # #### ##### # |
| # # #### # ## # ## ## # |
| # # # ## ### ## ## |
| # ## # ## # ### # ## # # ## |
| ### ## # ## ##### # ### ## # |
| ## # # # # # # ## ## # |
| ### ## ## ## ## # #### #### |
| # ## ## # ## # # # # ## |
| |
| o |
| |
| |
| - |
| |"
I rendered last frame of part 1, And rendered animated part 2 after completing it, for giggles. But yeah, w/o any picture I don't see how could you figure out what to do, except port or run someone else's code.
unless "arcanoid" is the first thing that comes to your mind after reading "arcade station"
It is, I retrofitted my solution to execute without viz - the paddle logic can be extremely naive, and you don't need to hold on to that much additional state. But w/o the viz you won't learn very easily how the paddle behaves.
When he mentioned 'ball', 'paddle', and 'blocks', I knew he was referring to an arkanoid-like at least.
this is how I got second star:
(#:adventofcode.2019.day05{:idx 439, :relbase 2239, :input [0], :output -1} #:adventofcode.2019.day05{:idx 441, :relbase 2239, :input [0], :output 0} #:adventofcode.2019.day05{:idx 443, :relbase 2239, :input [0], :output 10776})
Syntax error (NullPointerException) compiling at (day13.clj:91:1).
null
why check carefully for halt condition when you can careen off the edge and salvage the answer on the way down?
this is how I feel when someone mentions "but this is universal solution", where universal means "more than 3 coordinate axes" rather "for anyone's input"
This is next level https://twitter.com/vcazacov/status/1205261123244695552?s=09
It might crash at the end, but not before it prints the score. https://gitlab.com/dmarjenburgh/adventofcode/blob/master/src/adventofcode/year_2019.clj#L317-363
This is weird. I'm still stuck on part 1, as my output is nothing but an infinite stream of 0's.
Gotta be something wrong in my intcode machine, but it's worked for every previous day.
@rjray i had the same. Are you sure you determine the score correctly?
Not the score-- just running the program, the output stream is nothing but zeroes and an (apparently) infinite number of them.
Ah misunderstood
I'm trying to debug the intcode, but having just extracted it into a separate module it's proving harder to instrument for debugging than it was before.
(For example, a series of println
calls seem to be overwriting each other despite the program being single-threaded.)
For the hull painting robot I reused the amplifier with a phase of either BLACK or WHITE 🙂
Ugh, I finally got debugging fixed and (naturally) immediately saw the source of my problem. So part 1 is done.
Now I'm looking at part 2, and I'm kind of annoyed. Are we supposed to just inherently know the "rules" for how the ball moves, interacts with the paddle, etc.?
It never reads an input value, that I can tell. (I have a debug line for when input it read.)