Documentation
¶
Index ¶
- func BuildLL(s []string) ([]*list.List, error)
- func FindElementInChain(chain *list.List, s string) (*list.Element, error)
- func FindElementInChains(chains []*list.List, s string) (*list.List, *list.Element, error)
- func LLToString(l *list.List) (string, error)
- func PlayerKilled(chains []*list.List, player string) (personsList *list.List, hunter string, target string, err error)
- func StringToLL(s string) (*list.List, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindElementInChain ¶
If given a linked list from container/list, this function will return the first element e which has a value s.
func FindElementInChains ¶
If given a slice of linked lists from container/list, this function will return the first list and element of that list which contains the value s.
func LLToString ¶
This function returns a string in the format "A -> B -> C" if fed a linked list
func PlayerKilled ¶
func PlayerKilled(chains []*list.List, player string) (personsList *list.List, hunter string, target string, err error)
Passed a slice of all of the current chains, this function will remove the player from the slice they are in and return the slice, the hunter of our player, and the target of our player. hunter -> player -> target
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.