S'identifier - S'inscrire - Contact

CommunityWiki
Jam session in wikilandia

Advent of Code in Go

Source :

I did a very small thing in Go a while ago, and then I contributed a fix to the tutorial I was following, and that’s all I ever did. Time to give it another try!So, Advent of Code, day 8: You are given a grid of 50×6 pixels and input consisting of the following commands:rect 3x2 creates a rectangle in the upper left corner, three pixels wide and two pixels highrotate column x=1 by 1 rotates the given column down, with pixels reappearing at the toprotate row y=0 by 4 rotates the given row to the right, with pixels reappearing at the leftHere is some example input:rect 1x5 [..]

le 17.12.16 à 23:03 dans Mind - Version imprimable
Article précédent - Commenter - Article suivant -