assassinlogic

package module
v0.0.0-...-14e1d84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: GPL-2.0, GPL-3.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLL

func BuildLL(s []string) ([]*list.List, error)

func FindElementInChain

func FindElementInChain(chain *list.List, s string) (*list.Element, error)

If given a linked list from container/list, this function will return the first element e which has a value s.

func FindElementInChains

func FindElementInChains(chains []*list.List, s string) (*list.List, *list.Element, error)

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

func LLToString(l *list.List) (string, error)

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

func StringToLL

func StringToLL(s string) (*list.List, error)

This function returns a linked list if fed a string in the format "A -> B -> C"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL