Skip to content

Allow a desire to be a set of states and actions #24

@ZachParent

Description

@ZachParent

make a generalized desire which is a callable with the following form

class Desire: Callable[[State, Action, State], bool]

e.g.

def my_desire(from_state, action, to_state) -> bool:
  ...

we could add helpers for simple cases, e.g.

def any_transition_combo(from_states: Sequence[State], actions: Sequence[State]) -> Desire: ...

def transition_pairs(from_to_state: Sequence[Tuple[State, State]]) -> Desire: ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions