My project for the textjam, "akrete," is now at the point where the hard work begins. I successfully ported all the easy logic from Iron Arachne's Typescript to akrete's Python. The only hiccup I ran into was in the random number generator class's "next()" method, where in the Typescript version I was using unsigned bitwise operators to handle some of the logic. Python only has signed bitwise operators. It was easy enough to work around, and I knew I'd hit something like that when porting. Ah well, it's done. Also, I discovered that my go-to CLI library for Python, argparse, has long ago been superceded by a library called Click. That was a pleasant discovery. Click is much nicer to work with than argparse. I'll be using that going forward. Anyway. Akrete now generates random planets, including names and statistics, and outputs the results to the terminal. I even found and fixed a couple bugs in the statistics generation that I'll need to go back and fix in the Typescript. As it turns…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.