Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for rock-paper-scissors automata #26

Open
soxofaan opened this issue Mar 17, 2020 · 4 comments
Open

add support for rock-paper-scissors automata #26

soxofaan opened this issue Mar 17, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@soxofaan
Copy link

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
Copy link
Owner

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!

@ljvmiranda921 ljvmiranda921 added the enhancement New feature or request label Mar 18, 2020
@soxofaan
Copy link
Author

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 added a commit to whonut/seagull that referenced this issue Jun 3, 2020
Addresses ljvmiranda921#26.

The current implemenation maintains separate 2D board matrices
for each state to allow the use of existing lifeforms.
@whonut
Copy link

whonut commented Jun 3, 2020

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants