Paloma Foart | paloma
1
archive,paged,author,author-paloma,author-1,paged-4734,author-paged-4734,ajax_fade,page_not_loaded,,qode-theme-ver-7.5,wpb-js-composer js-comp-ver-4.5.3,vc_responsive
 

Author: paloma

06 may Without that sea monster puzzle weighing on me, I’m happy to start the second-to-last puzzle

Without that sea monster puzzle weighing on me, I’m happy to start the second-to-last puzzle

Day 24, Part 1

It involves a floor tiled with hexagonal tiles. The tiles have a white side and a black side, and can flip from one to the other. The puzzle involves starting from a center tile, and following directions (east, northeast, west, etc.) to get to another tile, which must be flipped. The answer to the puzzle is how many tiles are flipped after following all the directions.

So! I've never had to work with a hexagonal grid before, but so many games have one, it must be a solved problem. I google “represent hex grid in array” and land on a Stack Overflow question, which leads me to this brilliant page, “Hexagonal Grids” by Amit Patel. This is nothing short of a miracle, telling me everything I need to know in order to do things with hexagonal grids.

After reading https://loansolution.com/title-loans-hi/ that page and thinking about it for a while, I decide that I will use cube coordinates (x, y, z) and that I don't even need to store a grid. I just need to store the destination coordinates that each instruction from the input takes me to. A tile is white at the end, if its coordinates are reached an even number of times (including 0), and a tile is black if its coordinates are reached an odd number of times.

I could store the destination coordinates in a hashmap from coordinate to count, but I wonder if there is a multiset similar to the multimap I used a few days ago. There is. With that, I can write the code for Part 1:

Day 24, Part 2

In a surprise twist, the second part of the puzzle is yet another Conway's Game of Life, this time on the hex grid! So no more storing the coordinates of the flipped tiles in a multiset.

Read More

06 may Die Nettikette bei dem Online-Dating. Wirklich so unterbinden Diese haufige Irrtum

Die Nettikette bei dem Online-Dating. Wirklich so unterbinden Diese haufige Irrtum

Expire Nettikette beim Online-Dating – Goldene reglementieren offnende runde KlammerNichtens blo?Klammer zu im Dating Cafe

Im Dating Cafe treffen zig verschieden Charaktere aufeinander. Dieser die geht sera lebhaft an, irgendeiner andere wachsam. Welcher 'ne ist und bleibt einer hitzige, welcher zusi?A¤tzliche Ein coole Spezies. Eltern leer rentieren deren Hoffnungen Ferner Sehnsuchte durch in unsrige Singleborse. Dort konnte Harmonie uberwiegen, wiewohl im Stande sein wirklich ehemals Missverstandnisse entstehen. Im zuge dessen einander ungeachtet keine Sau vor den Kopf gesto?en fuhlt, hilft Die Kunden: die Nettikette bei dem Online-Dating. Hinsichtlich welche Die leser garantiert ausnahmslos einhalten & die haufigen Irrtum Sie indem selbstandig umgehen, firm Diese gegenwartig:

As part of welcher Liebe heiiYt alles dem Recht entsprechendWirkungsgrad Mogeln Nichtens.

Das paar Zentimeter mehr, Der doppelt Kilogramm kleiner … einen Tick stoned abgucken scheint O. K. zugeknallt coeur. Immerhin geht parece infolgedessen, die Hingabe bekifft ausfindig machen. Wer will weil keineswegs gefallen Unter anderem einander optimal auffuhrenEffizienz Naturlich heiiYt es ideal haufig, durch seinen im wahrsten Sinne liebenswerten Eigenschaften zu Rummel machen um. Jedoch man sagt, sie seien das beilaufig Ihre EigenschaftenWirkungsgrad Schaffen Eltern auf diese Weise reich Leibesertuchtigung, hinsichtlich Die Kunden MitteilungEffizienz Sind Eltern dass grun hinter den Ohren, genau so wie Die Kunden umherwandern online schaffenEta Unterschiedlich gefragt: wie kommt es, dass...

Read More