• 0 Posts
  • 17 Comments
Joined 2 years ago
cake
Cake day: December 5th, 2024

help-circle


  • I first built a dice roller : the core is just a call to random.randint module, but you need to have the terminal interface to get the instruction ( like “4d6” means you need to have 4 times random generation between 1 and 6). You can do it only with regexp, and if you want to get fancy you can try and find solutions to have compounded formulas, try to have the results stored during a game session, etc.

    Second project was a small game: the idea was to have a map of coordinates (xy), and each game has random spawning of 2 goblins and 3 gold within the map ; the goal is to move around (nswe) getting the 3 gold without hitting a goblin.

    So also no graphic representation of the map, you just have the game running at each keystroke.

    You just need to be able to define functions and do string manipulation ; for logic you can stay with if-then-else and while loop.

    And good luck with the learning !





  • I had a very good ride with Void for 3 years, a polished distro which taught me to play with init.

    But a lot of GNU packages are not packaged, and lastly I saw a news regarding the distro being split between pro and free version so …

    I used Antix after that, but AntiX can really get behind on package and kernel version, so I stumbled back on Devuan, and voilà ! With backport, Devuan is really like Debian without the hassle of never knowing if your system us really shut down when you close your laptop (systemd ! 🫵)









  • jcr@jlai.lutoLinux@lemmy.mlHow to install .py apps?
    link
    fedilink
    Français
    arrow-up
    1
    ·
    3 months ago

    Pip work outside venv, you need to add the -break-system-dependencies command option to pip though. However for this kind of utilities I did not encountered issues even when doing it like a savage (pdf2image was the latest one I installed like this. On Devuan (Debian 13/Trixie eqv). Note though: you really first need to check available libraries through apt/system installer first, because these have been packaged for a reason. Only use pip install -break-system-dependencies when all options have been spent.