csa

package module
v0.0.0-...-d8bf410 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

README

combinatorial-search-algoritms

Minimax search combinatorial algorithm variants:

  • minimax
  • minimax with alpha-beta prunning
  • semi-parallel minimax

Please, feel free to pull request if you find a bug!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinimaxInitScore

func MinimaxInitScore(maximizing bool) int

Types

type SearchNode

type SearchNode interface {
	Score() int
	IsTerminal() bool
	SearchNodeGenerator() SearchNodeGenerator
}

func Minimax

func Minimax(node SearchNode, depth int, maximizing bool) (SearchNode, int)

func MinimaxAlphaBetaPrunning

func MinimaxAlphaBetaPrunning(node SearchNode, depth int, maximizing bool) (SearchNode, int)

func MinimaxConcurrent

func MinimaxConcurrent(node SearchNode, depth int, maximizing bool, workers int) (SearchNode, int)

type SearchNodeGenerator

type SearchNodeGenerator func(maximizing bool) SearchNode

Jump to

Keyboard shortcuts

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