ljvmiranda921 / seagull

A Python Library for Conway's Game of Life
https://pyseagull.readthedocs.io/en/latest/index.html#
MIT License
175 stars 28 forks source link

add support for rock-paper-scissors automata #26

Open soxofaan opened 4 years ago

soxofaan commented 4 years ago

A rock paper scissors automaton: green with at least 3 blue neighbours becomes blue, likewise blue becomes red, red becomes green.

-- https://twitter.com/AndrewM_Webb/status/1236274167437197320

also see https://github.com/grey-area/rps-automata

ljvmiranda921 commented 4 years ago

Hi @soxofaan ! Hello and welcome to Seagull! Thanks for this suggestion, it looks interesting and would like to include it in the API.

I wonder how you imagine the API would be? So far our LifeForms only have two states (alive or dead). I guess we can always have a custom lifeform with a given number of states and pass it to a rock paper scissors automaton.

Lastly, are you interested in opening-up a Pull Request for this? I can guide you along the way!

soxofaan commented 4 years ago

hi @ljvmiranda921

at the moment, I don't have the bandwidth to work on this myself. It was just funny to see these two projects in my timeline a couple of days apart and I wanted to connect the dots :)

whonut commented 4 years ago

Hi @ljvmiranda921. I've been having a crack at this and have opened a PR. I'd be very grateful if you gave it a look! I wanted to get something roughly working. I'm happy to junk it all if you think there's a better way.

ljvmiranda921 commented 4 years ago

Hi @whonut , wow awesome! I saw the PR, thanks for this! Let me check it on the weekend!