PJDuchesne's recent activity

  1. Comment on Bingeable book series - light reads for summer. in ~books

    PJDuchesne
    Link Parent
    Yes! I just ordered the 3rd Wayfarerers book and I can't wait until it gets here. I once read her writing style described as "Cozy sci-fi", which I definitely agree with. I really enjoyed it...

    Yes! I just ordered the 3rd Wayfarerers book and I can't wait until it gets here. I once read her writing style described as "Cozy sci-fi", which I definitely agree with.

    I really enjoyed it because it had far less focus on international politics and galaxy spanning events, instead having more focus on personal character development and interactions that just happen to occur with an interesting sci-fi backdrop.

    2 votes
  2. Comment on Casual Conversation thread - for random chit chat and nonsense that doesn't fit elsewhere. in ~talk

    PJDuchesne
    Link Parent
    I grew up on Canada's east coast, in an area pretty similar demographically to Maine. Basically it was just a lot of nature, stunted economic growth, conservative people. Weather wise I found it...

    I grew up on Canada's east coast, in an area pretty similar demographically to Maine.

    Basically it was just a lot of nature, stunted economic growth, conservative people. Weather wise I found it more mild than central Canada, mainly due to the ocean cooling down summers and (slightly) warming up winters.

  3. Comment on Programming Challenge - Let's build some AI! in ~comp

    PJDuchesne
    Link Parent
    Many of the challenges are being drawn from Project Euler, which is a great way to practice programming either as a new programmer or simply learning a new language. I'd definitely recommend...

    Many of the challenges are being drawn from Project Euler, which is a great way to practice programming either as a new programmer or simply learning a new language. I'd definitely recommend trying out some of the earlier problems as you get started.

    The first few problems can be easily brute forced and just test your syntax, but it quickly moves to more thought provoking problems that require a reasonable approach to find the solution in a timely fashion.

    1 vote
  4. Comment on Programming Challenge - Let's build some AI! in ~comp

    PJDuchesne
    Link Parent
    That sounds fun, maybe I'll check it out tomorrow when I have more free time. That could make an interesting ascii screensaver :)

    That sounds fun, maybe I'll check it out tomorrow when I have more free time.

    That could make an interesting ascii screensaver :)

  5. Comment on Programming Challenge - Let's build some AI! in ~comp

    PJDuchesne
    Link
    Here's a 'quick' python solution, also on tio.run as @Soptik used. Code The "combination" portion of the challenge was rather open ended and drastically changes the code, so I just went ahead and...

    Here's a 'quick' python solution, also on tio.run as @Soptik used.

    Code

    The "combination" portion of the challenge was rather open ended and drastically changes the code, so I just went ahead and did what I felt was fun. After getting all entity fitnesses I simply allowed only the top 10% percentage of the population to reproduce. To reproduce, I simply randomly look through the entity list until I find two entities that are allowed to reproduce and then combine their solutions to make a new entity.

    There are parameters at the top of the code if you want to play with them:

    • Solution String: The solution string to look for (Default: "Hello World")
    • Population Size: The number of entities in the list (Default: 1000)
    • Reproduction Cutoff: The percentage of the population allowed to reproduce between iterations (Default: 0.1 -> 10% )
    • Mutation Chance: The chance for each character to mutate within an entity. Mutation occurs during entity creation. (Default: 0.05 -> 5%)
    3 votes