Apretrue [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=38172 Game of Life <p>This is a Game of Life implemented by Pico-8.</p> <ul> <li>Press <strong>X</strong> to change a cell to live or dead</li> <li>Press <strong>C</strong> to start evoluation.</li> </ul> <p>The evlove follows four rules listed below:</p> <ol> <li>Any live cell with fewer than two live neighbours dies, as if by underpopulation.</li> <li>Any live cell with two or three live neighbours lives on to the next generation.</li> <li>Any live cell with more than three live neighbours dies, as if by overpopulation.</li> <li>Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.</li> </ol> <p>Some specific pattern will cause something interesting.For example:</p> <img style="" border=0 src="/media/38172/Snipaste_2020-03-16_18-58-30.jpg" alt="" /> <p>This pattern will keep moving and can always keep the original form.</p> <p>You can see more detils for game of life in <a href="https://www.conwaylife.com/wiki/Main_Page">LifeWiki</a></p> <p>Let's give it a try.<br /> <table><tr><td> <a href="/bbs/?pid=73979#p"> <img src="/bbs/thumbs/pico8_moworuzko-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=73979#p"> moworuzko</a><br><br> by <a href="/bbs/?uid=38172"> Apretrue</a> <br><br><br> <a href="/bbs/?pid=73979#p"> [Click to Play]</a> </td></tr></table> </p> <p>If you are interested about the game or &quot;cellular automaton&quot;, you can see my another project <a href="https://www.lexaloffle.com/bbs/?tid=37083">cellular automaton</a></p> <p>Thanks for your attention!</p> https://www.lexaloffle.com/bbs/?tid=37084 https://www.lexaloffle.com/bbs/?tid=37084 Mon, 16 Mar 2020 11:09:07 UTC Cellular Automaton <p>This is a Cellular Automaton implemented by Pico-8.</p> <p>Each cell has <strong>3 states, empty, blue or red</strong>, is encoded as 0,1,2.<br /> Everything with three states can be simply simulated by this simulator.</p> <p>You can think of it as the three states of a tree, dead, normal, or burning.<br /> Of course,it can also be interpreted as human death, healthy or illness.</p> <p>The probability of each cell state transition is related to the state of surrounding cells. The more surrounding red cells, the higher the probability that the cells will turn red. The more blue cells around you, the higher the chance that the cell will turn blue.</p> <p><strong>press x to change a cell from state 1 to 2, or press z to change a cell from state 2 to 1.</strong></p> <p>The state transition probabilities are written in the function _init(), Where p01 represents the probability of transition from state 0 to state 1.<br /> You can try to modify it and observe the evolution results.</p> <p>Each time _update () is executed, it will perform state transition on each cell according to the transition probability.<br /> Since _update() runs thirty times per second, so the state transition probability per second is approximately equal to 30*p.</p> <p>This is my first pico-8 project, thank you for your attention.</p> <p> <table><tr><td> <a href="/bbs/?pid=73968#p"> <img src="/bbs/thumbs/pico8_celluar_automata-4.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=73968#p"> Celluar Automata 1.3</a><br><br> by <a href="/bbs/?uid=38172"> Apretrue</a> <br><br><br> <a href="/bbs/?pid=73968#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=37083 https://www.lexaloffle.com/bbs/?tid=37083 Mon, 16 Mar 2020 02:52:45 UTC