Exploring alternative realities 🕶 Soluble in C8H10N4O2 ☕️ Built stuff @ Siri / ex-SWE @ Sony PlayStation & Guerrilla
(Particle) MovementMade with HTML, CSS, JSRecent comments (0)
AutomatonMade with PythonImplements a cellular automaton to generate a simple terrain-like structure, from noise.Recent comments (1)KosmiCKhaoz6 months agoThis Repl includes an implementation of a cellular automaton to generate a simple terrain-like structure, from noise. Cellular Automata is a subject that I've been meaning to explore for a long time and never did. This Repl was created as a fun night of code and intended to try out Replit, practice using numpy and learn more about CAs. The implementation includes 3 main stages: 1. Generate initial state 2. Run the CA rule for a few iterations 3. Display the results This implementation keeps all the intermediate states so that they can be later displayed or analysed. The Repl will show an animation of the different time steps and include a plot of the number of live cells over time. Next I'd like to: * Experiment with stochastic implementations. * Use a higher-level plotting library (matplotlib is messy IMO). * Learn how to present simple projects beautifully. Disclaimer: I tried to keep it short and simple too and hopefully most functions have self-evident intentions. No attempts were made at optimising the code.