game

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

Package game is just a wrapper for the searching process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGame

func NewGame(puzzle string, algor algor.Algor, costFunc func(*state.State) *int) game

NewGame creates a new game instance.

it takes the start state path in puzzle, the desired algorithm in algor, and the desired cost function in costFunc.

In case the algorithm doesn't require a cost function, algor.NoFunc can be passed, but any other valid functions will work too and will be simply ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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