Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
FredMSloniker
Jan 2, 2008

Why, yes, I do like Kirby games.
I just realized I can't add is_random to the game state because it's information that applies to the current state before we call get_state_complex. I wonder if there's some way I can improve that. Still chatting with the folks in the Python thread, though.

e: I had an idea for significantly compacting the states generated by combat. Have a single section do all of the rolling, then compress all the results into (say) 'you hit monster 1 and parried monster 2', 'you hit monster 1 but monster 2 hit you', 'you hit monster 1 and monster 2', 'you were hit by monsters 1 and 2', et cetera. I don't really care if I rolled a 4 or a 5 for monster 1's Attack Strength if the outcome is the same. I'm not going to implement it right now because (a) it's late and I'm not fresh and (b) I'm still running the enumerator on the test data. The output so far:

Pass 1, entry 1/1 (100.00%). 1 new position and 0 old positions (100.000% new) found.
Pass 2, entry 3/3 (100.00%). 3 new positions and 0 old positions (100.000% new) found.
Pass 3, entry 18/18 (100.00%). 18 new positions and 0 old positions (100.000% new) found.
Pass 4, entry 108/108 (100.00%). 108 new positions and 0 old positions (100.000% new) found.
Pass 5, entry 324/324 (100.00%). 324 new positions and 0 old positions (100.000% new) found.
Pass 6, entry 648/648 (100.00%). 648 new positions and 0 old positions (100.000% new) found.
Pass 7, entry 1296/1296 (100.00%). 864 new positions and 0 old positions (100.000% new) found.
Pass 8, entry 1944/1944 (100.00%). 1728 new positions and 216 old positions (88.889% new) found.
Pass 9, entry 5184/5184 (100.00%). 4320 new positions and 648 old positions (86.957% new) found.
Pass 10, entry 22032/22032 (100.00%). 21492 new positions and 540 old positions (97.549% new) found.
Pass 11, entry 116640/116640 (100.00%). 112644 new positions and 2376 old positions (97.934% new) found.
Pass 12, entry 516600/516600 (100.00%). 290736 new positions and 219384 old positions (56.994% new) found.
Pass 13, entry 1583964/1583964 (100.00%). 1087344 new positions and 496620 old positions (68.647% new) found.
Pass 14, entry 3824640/3824640 (100.00%). 1195884 new positions and 2628756 old positions (31.268% new) found.

It's just getting started on pass 15, which has 4,163,760 positions to check. It's also using a surprisingly small amount of my system resources. On doing some research, I realize that it's only using a single core. When I'm fresh, I'll read up on the multiprocessing module and see if I can make use of that to up the clock speed, so to speak.

e2: the enumerate isn't getting anywhere running on a single core. I've gone ahead and stopped it so I can implement some optimizations in peasant.py while I wait to hear back on how to multi-process in Python.

FredMSloniker fucked around with this message at 18:57 on Sep 29, 2022

Adbot
ADBOT LOVES YOU

FredMSloniker
Jan 2, 2008

Why, yes, I do like Kirby games.
Okay, it's clear to me that I have to actually sit down and properly learn Python instead of looking it up bit by bit if I want to get this project done this decade. I'll be back when I have something to share!

Mzbundifund
Nov 5, 2011

I'm afraid so.
Impudent Programmer

FredMSloniker
Jan 2, 2008

Why, yes, I do like Kirby games.
I'm gonna see if I can lure anyone over from the Python thread to look over my shoulder, do a sort of live-coding in this thread. If that doesn't pan out, I'll work on it elsewhere.

Kanthulhu
Apr 8, 2009
NO ONE SPOIL GAME OF THRONES FOR ME!

IF SOMEONE TELLS ME THAT OBERYN MARTELL AND THE MOUNTAIN DIE THIS SEASON, I'M GOING TO BE PISSED.

BUT NOT HALF AS PISSED AS I'D BE IF SOMEONE WERE TO SPOIL VARYS KILLING A LANISTER!!!


(Dany shits in a field)
How is it going? Is this solved yet?

Adbot
ADBOT LOVES YOU

FredMSloniker
Jan 2, 2008

Why, yes, I do like Kirby games.

Kanthulhu posted:

How is it going? Is this solved yet?

I'm still working on it behind the scenes. I've made some process on making it work better (see my posts in the Python thread for more details), but this week is kind of an awkward one for me (I went in for a sleep study on Tuesday, and today I'm having a tooth extracted), so I don't expect to get much done the next few days. It hasn't helped that I picked up Shadow of War as an Amazon Prime freebie and I've been busy committing genocide one orc at a time. :v:

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply