Death_Source Posted May 31, 2021 Share Posted May 31, 2021 Hey lol it's me again. I'm sure you've heard at least once of the Game of Life, made by mathematician John Conway (RIP, died from Covid last year). It revolves around 3 rules that define the actions of dead and alive cells throughout a grid. Based on the start pattern, the actions of these cells is determined by the rules and can evolve into complex shapes, and with proper time and effort, can be coded into functioning systems. The rules are as follow: Any alive cell with less than 2 alive neighbors must die. Any alive cell with more than 3 alive neighbors must also die. Any empty cell with exactly 3 alive neighbors will become an alive cell. Using Skript, i coded these 3 rules into 2 functions, and with a little bit of work here and there got the exact same result given by the Game of Life. I included a video and the code for the functions below. function neighbors1(l: location) :: boolean: return true if (size of (all blocks in radius 1.5 of {_l} where [input = black concrete])) != 2 or 3 function neighbors2(l: location) :: boolean: return true if (size of (all blocks in radius 1.5 of {_l} where [input = black concrete])) = 3 Minecraft 1.16.5 - Multiplayer (3rd-party Server) 2021-05-30 14-29-16_Trim.mp4 P.S., Floofsy = I think we can all agree? 2 Link to comment Share on other sites More sharing options...
_Tarna_ Posted May 31, 2021 Share Posted May 31, 2021 lol that looks cool for some reason. Try it again but with more starting blocks. Discord - Tarna256#8675 In-game name - _Tarna_ Follow @Tarna_256 on Twitter --------------------------------------------------------- [VIP] - 7/27/2020 Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Death_Source Posted May 31, 2021 Author Share Posted May 31, 2021 32 minutes ago, _Tarna_ said: lol that looks cool for some reason. Try it again but with more starting blocks. I did, many times it's all the same principles in the end. https://playgameoflife.com Link to comment Share on other sites More sharing options...
CoolProgrammer Posted May 31, 2021 Share Posted May 31, 2021 3 hours ago, Death_Source said: Hey lol it's me again. I'm sure you've heard at least once of the Game of Life, made by mathematician John Conway (RIP, died from Covid last year). It revolves around 3 rules that define the actions of dead and alive cells throughout a grid. Based on the start pattern, the actions of these cells is determined by the rules and can evolve into complex shapes, and with proper time and effort, can be coded into functioning systems. The rules are as follow: Any alive cell with less than 2 alive neighbors must die. Any alive cell with more than 3 alive neighbors must also die. Any empty cell with exactly 3 alive neighbors will become an alive cell. Using Skript, i coded these 3 rules into 2 functions, and with a little bit of work here and there got the exact same result given by the Game of Life. I included a video and the code for the functions below. function neighbors1(l: location) :: boolean: return true if (size of (all blocks in radius 1.5 of {_l} where [input = black concrete])) != 2 or 3 function neighbors2(l: location) :: boolean: return true if (size of (all blocks in radius 1.5 of {_l} where [input = black concrete])) = 3 Minecraft 1.16.5 - Multiplayer (3rd-party Server) 2021-05-30 14-29-16_Trim.mp4 314.72 kB · 0 downloads P.S., Floofsy = I think we can all agree? This looks cooler than the ice cubes I stored in my basement. Hello there! If you're reading this, hope you're having a wonderful day! Feel free to contact me via Discord (CoolProgrammer#1920) for any help. My DMs are always open for help. You can also message via. forum messages for help. Also, don't hesitate to leave a like on my post if I helped you in any way. Link to comment Share on other sites More sharing options...
Death_Source Posted May 31, 2021 Author Share Posted May 31, 2021 1 minute ago, CoolProgrammer said: This looks cooler than the ice cubes I stored in my basement. even cooler than the babies i store in my basement? Link to comment Share on other sites More sharing options...
Weeeoooooo Posted May 31, 2021 Share Posted May 31, 2021 oo thats cool and i agree about the last thing 1 Link to comment Share on other sites More sharing options...
AgentGamerPro Posted June 3, 2021 Share Posted June 3, 2021 On 5/30/2021 at 6:47 PM, Death_Source said: Hey lol it's me again. I'm sure you've heard at least once of the Game of Life, made by mathematician John Conway (RIP, died from Covid last year). It revolves around 3 rules that define the actions of dead and alive cells throughout a grid. Based on the start pattern, the actions of these cells is determined by the rules and can evolve into complex shapes, and with proper time and effort, can be coded into functioning systems. The rules are as follow: Any alive cell with less than 2 alive neighbors must die. Any alive cell with more than 3 alive neighbors must also die. Any empty cell with exactly 3 alive neighbors will become an alive cell. Using Skript, i coded these 3 rules into 2 functions, and with a little bit of work here and there got the exact same result given by the Game of Life. I included a video and the code for the functions below. function neighbors1(l: location) :: boolean: return true if (size of (all blocks in radius 1.5 of {_l} where [input = black concrete])) != 2 or 3 function neighbors2(l: location) :: boolean: return true if (size of (all blocks in radius 1.5 of {_l} where [input = black concrete])) = 3 Minecraft 1.16.5 - Multiplayer (3rd-party Server) 2021-05-30 14-29-16_Trim.mp4 314.72 kB · 0 downloads P.S., Floofsy = I think we can all agree? Is this a server? Please tell me this is a server Lifestealed | Minecraft Servers [VIP] 12/26/20 - 10/27/2021[PRO] 12/27/21 - Present Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now