python-discord / sir-lancebot

A Discord bot started as a community project for Hacktoberfest 2018, later evolved to an introductory project for aspiring new developers starting out with open source development.
MIT License
244 stars 240 forks source link

1D Cellular Automaton Generator #1098

Closed Sas2k closed 2 years ago

Sas2k commented 2 years ago

Description

Hello, the feature I would like to propose is a cellular automaton generator. like if someone types; .simulate <rule-number> <position: left|center|right|random> <initial-condition random|impulse>(startes with 1 cell)

Rule-Number: A rule consists of deciding, for each pattern, whether the cell will be a 1 or a 0 in the next generation. There are then 28 = 256 possible rules. postion: the place where the starting cells are placed initial-conditon: random - randomly place cells | impulse - starts with only 1 cell

and it would send a picture of the output.

Reasoning

For fun! and education purpose of course(https://www.techtarget.com/searchenterprisedesktop/definition/cellular-automaton)

Proposed Implementation

the code for the simulation is already implemented in one of my own bots and it's fully functional Link-To-Gitub-Repo-of-the-existing-code

image

Additional Details

Wikipedia On Cellular Automata -> https://en.wikipedia.org/wiki/Cellular_automaton wolfram -> https://mathworld.wolfram.com/CellularAutomaton.html

Would you like to implement this yourself?

mbaruh commented 2 years ago

Sorry, I'm not really sure what this is or what to do with that

Sas2k commented 2 years ago

Sorry, I'm not really sure what this is or what to do with that

Have you ever heard of cellular automaton

defenition:

A cellular automaton (CA) is a collection of cells arranged in a grid of specified shape, such that each cell changes state as a function of time, according to a defined set of rules driven by the states of neighboring cells.
mbaruh commented 2 years ago

I think this is a fun standalone project to implement if you're interested in the algorithm, but honestly I don't think it fits the bot. It's not informational or interactive, and I don't see people using it.

Sas2k commented 2 years ago

ok, thanks for reviewing it @mbaruh