minimax

package
v0.0.0-...-d37d129 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Eine Implementierung des Minimax Algorithmuses: https://de.wikipedia.org/wiki/Minimax-Algorithmus

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brett

type Brett interface {
	MinimaxMöglicheZüge(perspektive Spieler, regeln Regeln) []Zug

	MinimaxBewertung(perspektive Spieler, regeln Regeln) int
}

type Regeln

type Regeln any

type Spieler

type Spieler interface {
	MinimaxGegner() Spieler
}

type Zug

type Zug interface {
	MinimaxErgebnis() Brett
}

func BesterNächsterZug

func BesterNächsterZug(brett Brett, regeln Regeln, amZug Spieler, maximaleTiefe int) (zug Zug, ok bool)

Jump to

Keyboard shortcuts

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