@Absinthe
Yep! Like I said, my implementation treats the board as functionally infinite as cells grow towards the borders
@raining_night
Can't get around them dying, but I don't think they should suffer for several reasons
I borrowed this one from codewars
Snail Sort
Given an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise.
array = [[1,2,3],
[4,5,6],
[7,8,9]]
snail(array) #=> [1,2,3,6,9,8,7,4,5]
For better understanding, please follow the numbers of the next array consecutively:
array = [[1,2,3],
[8,9,4],
[7,6,5]]
snail(array) #=> [1,2,3,4,5,6,7,8,9]
This image will illustrate things more clearly:
NOTE: The idea is not sort the elements from the lowest value to the highest; the idea is to traverse the 2-d array in a clockwise snailshell pattern.
@freemo
I'm less concerned with en masse slaughter and more maximally reducing harm.
I should clarify that I'm not entirely against private gun ownership; like you said, recent history and modern history speak to how an outright ban ends up working. I'm just hesitant when it comes to adding lethal force to any conflict.
@freemo
Well, gun culture is different in the states, and I can only imagine that if one lone gunman opened fire during a protest, a few more shots might follow from police. There would definitely be a panic and bystanders would be hurt.
I'm not sure it follows that all protestors who want to use lethal force would organize themselves into a separate space.
@freemo
That's valid and I agree. I'm concerned about those who want to protest but don't want to use lethal force. They'd be caught in the crossfire.
@freemo
There are trade offs, imo. otoh, it's valid to think that common people having access to firearms would deter a violent government. oto, the Chinese government is already using lethal force; I can only imagine how much it would escalate if both sides had ready access to firearms.
#toyprogrammingchallenge #GameOfLife
This was a fun one! Written in Ruby, I decided on treating the board size as infinite by expanding it whenever the first or last row or column has an alive cell.
The entry file is game_of_life.rb in the root directory, and for simplicity, it just runs the "small exploder" pattern instead of taking an argument for initial state.
@Absinthe
Related to #toyprogrammingchallenge, I thought this was a good read!
https://jvns.ca/blog/2019/11/20/what-makes-a-programming-exercise-good/
@Samkupar
It's a bit non-intuitive at first. When you search, unless you're searching for a full user name (like mine, @jump_spider@goto.org), you can only search for what your instances *knows* about. So if you're looking for a particular hashtag or someone, and your instance hasn't federated with any toots that have it, then it won't appear. When searching a full username though, which includes the instance domain, the search knows to try to federate directly with that instance.
@mastodon
@Samkupar
It's a bit non-intuitive at first. When you search, unless you're searching for a full user name (like mine, @jump_spider@goto.org), you can only search for what your instances *knows* about. So if you're looking for a particular hashtag or someone, and your instance hasn't federated with any toots that have it, then it won't appear. When searching a full username though, which includes the instance domain, the search knows to try to federate directly with that instance.
@mastodon
Today we announce the formation of the Bytecode Alliance, a new industry partnership coming together to forge WebAssembly’s outside-the-browser future by collaborating on implementing standards and proposing new ones. Our founding members are Mozilla, Fastly, Intel, and Red Hat, and we’re looking forward to welcoming many more.
Meditation for the ADD Mind https://with.spider.ink/meditation-for-the-add-mind
#ActuallyPsychotic <> programming autodidact and polyglot <> meditation enthusiast
Avatar by Leanna Schwartz,
lrschwartz90@gmail.com
Header image by @cesya@birdshite.monster