whitehall1212

package module
v0.0.0-...-1844e3b Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 4 Imported by: 0

README

whitehall1212

Go Report Card

Whitehall 1212 is the former number of Scotland Yard. I figured it's a fitting name for a package intended to help with the Scotland Yard board game. This is a persuit-evasion board game that contains 200 positions connected by various transportation means. Persuers, called detectives, are tasked with intercepting the evader, called Mr X.

The goal of this library is to explore the various graph problems that are expressed in the game design.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map interface {
	GetEdges(types.Vertex, []types.Transportation) ([]types.Edge, error)
	PossibleMoves(types.Vertex, int, []types.Transportation) ([]types.Vertex, error)
	ShortestPath(types.Vertex, types.Vertex, []types.Transportation) (int, []types.Edge, error)
}

Map is the interface to game map data

func New

func New() Map

New returns a Map instance intialized with game board data

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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