• 0 Posts
  • 9 Comments
Joined 1 year ago
cake
Cake day: July 4th, 2023

help-circle



  • Two-Dice Pig. So not a super complicated game, but still fun to try to leverage the… 3 point totals to calculate a risk vs desperation factor. Though looking at the code again, the hard limits feel weird. Like just straight up not allowing the risk of more than 35 points at a time (100 is a winning score, tho)? Though I do remember that I HAD to add the condition to force it to claim victory or it’d essentially get too cocky and would lose everything. I know that two-dice pig is essentially a solved game (as much as you can solve a game that relies on random chance), but I felt using a lookup table was boring, and wanted it to feel like it was actually an AI that could make mistakes, and had a semblance of a personality.


  • Honestly one of my most competent “AIs” (that wasn’t ML) just did a whole bunch of math to calculate an optimal strategy, but to make it feel more human, I added a few other things, like how desperate it was to win this round so it could have a chance of continuing, a bit of arrogance if it was winning (it was a bit heavy in the beginning. Had to add checks for “if you’ve already won, submit your victory instead of becoming so arrogant you lose everything!”), and to top it all off: a random number generator that could make it pick the opposite of what it wanted to if the confidence strength wasn’t high enough. Just made it a little less predictable.

    Honestly made every competition against it really close. And certainly way better than the people who solved it with a simple “randomly choose an action to complete”… Which was most of the class.


  • So is this more or less accurate than location by cell tower? I used to use that as an option in Llama all the time. Didn’t require a GPS ping, and once I had trained it sufficiently, it was fairly accurate with minimal background work. Heck, around my work I had problems where I walked around the outside of the building and it figured I wasn’t at work anymore. I’d say that’s pretty darn accurate. But I know that probably only works for really dense areas with tons of towers to handle tons of phones.

    Just feels like it would be more accurate than trusting that SSIDs are completely unique when there’s tons of instances where the same SSID is used in multiple locations…


  • You tell him “stop giving away our secrets!”

    And yeah, a lot of people in the comments are running away from the joke, but realistically, to copy+paste code and have it work, you generally have to have a grasp of the code, at least to ask what you want and to paste it and change the variable names, and write the lines to stitch it all together.

    Add imposter syndrome on top of that, and it may seem like you don’t do anything of use because you copied 3 functions out of a 1k line file.