-
-
Notifications
You must be signed in to change notification settings - Fork 383
WIP: RT Search #86
base: develop
Are you sure you want to change the base?
WIP: RT Search #86
Conversation
|
Thanks, I'll get stuck into this when I can, I'd advise merging my next PR in so that we can make use of that code in this PR, once this PR is rebased with the new develop |
Agreed, will do |
self._poker_engine = PokerEngine( | ||
table=self._table, small_blind=small_blind, big_blind=big_blind | ||
) | ||
# Reset the pot, assign betting order to players (might need to remove | ||
# this), assign blinds to the players. | ||
self._poker_engine.round_setup() | ||
# Deal private cards to players. | ||
self._table.dealer.deal_private_cards(self._table.players) | ||
if not self.real_time_test: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
During real time play, we'd actually want this deal to happen when the new game state is instantiated. For the test, I'm just keeping things simple, since we won't need to deal hole cards until the test node is reached.
There is a better way to abstract this, but I'm just focusing on getting something working
It looks like the regret output is reasonable at this point. I'm sure there are still a couple subtle bugs to work out, but it might be working at this point. Really slow at the moment, but I want to validate the math before optimizing. Updating TODOs with:
|
ac11f41
to
4f03233
Compare
…are test-specific changes atm
a5dfa50
to
2bbb7e9
Compare
@fedden. Go ahead and take a look. This is basically finished. Still two sanity tests that I need to do:
Other than that, it might could be good to go! I'll train a decent strategy tonight to try this on. |
provided the binary size is small you could force add this to the repo as part of the test. Or you could compute it in the test (or a smaller strategy) provided it's < 1 min
|
Oh, is PyTest just picking this up because it has the word test in it? I can just change the name! I didn't mean for it to be an actual test for PyTest |
… function, fix broken test
…a file for this, it is also lengthy at the moment
@fedden , would love your help on this branch if you want to jump on at any time. Feel free to restructure as you please. I got the ball rolling for real time search (RTS) here. I'll give a little overview about the immediate/long term purpose - as well as my current list of to dos.
Overview
Immediate: Needed for testing CFR/core algorithm changes
Longterm: Needed for real time play
TODOs