![]() ![]() Self-supporting spaceships are typically thousands of cells long. ![]() Later derivatives output only twin primes and Fermat primes respectively. Dean Hickerson's primer, which outputs spaceships if and only if they correspond to a prime number.Also notable for being the first pattern ever found to exhibit quadratic growth. Not as large as the previous examples, but Bill Gosper's glider gun breeder, at 749x338, was massive for a time when pen-and-paper was the dominant method of simulating Life patterns.Any glider synthesis, no matter how complex, can be recreated with as few as 15 gliders as of November 2022. Goucher's pi and phi calculators, which not only compute the two mathematical constants, but also convert them into decimal digits which are then printed as a matrix of blocks. Comments, while great to have, can only go so far, and that's something that a lot of people forget about or don't even realize when they're first learning.PhiNotPi: This began as a quest but ended as an odyssey. I'm going to try and do this from now on with any scripts or programs I write, so at least I'll understand it, and at best if I have to go back and work on it again X days/weeks/months/years later I'll be able to refer to my notes and figure out what I was thinking when I wrote it. That's something that helped me really understand what was going on with the code - especially my weak areas like the coordinate math and what it was actually doing within the array. I did that with this game - even going so far as to write up a series of notes where I broke the program apart and explained each chunk of code back to myself. Yeah, for a long time, I rushed through the chapters and typed in the examples and then moved on without stopping long enough to break down each step of the examples and understand what they were doing, how they related to the other steps, and how to extend them beyond what was just stated in the exercise. *edited to add the program link after the initial write-up and formatting of links.* Hope this helps and/or encourages some of you on your learning journey! I am in no way affiliated with the author of the book/website, nor do I receive any perks from referring you to really is just a good way to learn python. If you do, and you find any bugs, please remember to add a comment on github so that I can fix any issues with it, as this will help me improve!Īlso, as an aside, if you are looking to get into python or having a hard time understanding anything, let me suggest going through Automate the Boring Stuff with Python It's free, it's easy to understand and grasp the concepts, and it stays pretty well up to date. This is the heart of learning (at least for me) - taking the known quantity and incrementally adding to it and stretching yourself and your understanding.įeel free to download the code, play with it and extend it yourself if you like. For those of you who are going through tutorials and things just aren't 'clicking' yet, don't be afraid to slow down between chapters/resources/tutorials, take an example that you've already written and understand how it works and extend it. This is not a major program, and likely something an advanced python developer wouldn't even bat an eye at doing, but for those of us still learning our way around python and doing exercises, I found it to be an extremely gratifying and educational way to approach writing something. When the player ends the game, it should print out the number of steps each run took to reach stability. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |