pub enum Edge {
Draw,
Fold,
Check,
Call,
Open(Chips),
Raise(Odds),
Shove,
}Expand description
An abstracted game tree transition.
Unlike Action which carries exact chip amounts, Edge abstracts
betting actions for strategy lookup across different stack depths.
§Variants
Draw— Chance node (card deal)Fold,Check,Call— Standard player decisionsOpen(Chips)— Preflop open in BB units (e.g., 2BB, 3BB)Raise(Odds)— Pot-relative raise (e.g., 1/2 pot, 2x pot)Shove— All-in bet
Variants§
Implementations§
Source§impl Edge
impl Edge
Sourcepub fn regret(&self) -> (Utility, Utility)
pub fn regret(&self) -> (Utility, Utility)
Initial regret bounds for CFR warmstart.
Returns (min, max) regret to bias exploration toward certain actions.
Sourcepub fn policy(&self) -> (Probability, Probability)
pub fn policy(&self) -> (Probability, Probability)
Initial policy bounds (currently unused).
Trait Implementations§
Source§impl From<Edge> for u8
u8 bijection
Layout: 1-5 = basic edges, 6-9 = Open(OPENS_GRID), 10-15 = Raise(RAISE_GRID)
impl From<Edge> for u8
u8 bijection Layout: 1-5 = basic edges, 6-9 = Open(OPENS_GRID), 10-15 = Raise(RAISE_GRID)
Source§impl From<u64> for Edge
u64 bijection with backwards compatibility for old Size encoding.
Old format: tag 4 with bit 19 set = BBs → decoded as Open
New format: tag 6 = Open, tag 4 = Raise(Odds)
impl From<u64> for Edge
u64 bijection with backwards compatibility for old Size encoding. Old format: tag 4 with bit 19 set = BBs → decoded as Open New format: tag 6 = Open, tag 4 = Raise(Odds)
Source§impl FromIterator<Edge> for Path
impl FromIterator<Edge> for Path
Source§impl Ord for Edge
impl Ord for Edge
Source§impl PartialOrd for Edge
impl PartialOrd for Edge
impl Copy for Edge
impl Eq for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.