I needed to get ready to teach a Python class after doing other work. So I wanted a project that would exercises all my core python skills. I have tried my had at rain simulations in the past. Usually focusing first on graphics as well as how it works. This time I focused on developing a nice clean and pleasing algorithm first. Programming animation in the terminal is always a little tricky, but I kept it simple and just sized a screen buffer to the terminal width and height and cleared the screen before printing it. I might port it to javascript (Deno) and then to the browser and render in the DOM(Document Object Model)
No comments:
Post a Comment