deeplizard

package
v0.0.0-...-1cbba0e Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

A simple game where a lizard walks around a board and tries to find crickets to eat: https://www.youtube.com/watch?v=qhRNvCVVJaA

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeepLizardEvironment

type DeepLizardEvironment struct {
	// contains filtered or unexported fields
}

func New

func New() *DeepLizardEvironment

func (*DeepLizardEvironment) Evaluate

func (k *DeepLizardEvironment) Evaluate(currentState coach.State, action coach.Action) (coach.State, coach.Reward, bool)

func (*DeepLizardEvironment) InitialState

func (k *DeepLizardEvironment) InitialState() coach.State

func (*DeepLizardEvironment) MaxSteps

func (k *DeepLizardEvironment) MaxSteps() int

func (*DeepLizardEvironment) PossibleActions

func (k *DeepLizardEvironment) PossibleActions() []coach.Action

func (*DeepLizardEvironment) Score

func (k *DeepLizardEvironment) Score(states []coach.State) coach.Score

func (*DeepLizardEvironment) Show

func (k *DeepLizardEvironment) Show(states []coach.State, interactive bool)

func (*DeepLizardEvironment) Update

func (k *DeepLizardEvironment) Update()

type Direction

type Direction int
const (
	Up Direction = iota
	Down
	Left
	Right
)

func (Direction) String

func (d Direction) String() string

type Reward

type Reward struct {
	// contains filtered or unexported fields
}

type Tile

type Tile int

type TileType

type TileType int
const (
	Empty TileType = iota
	OneCricket
	FiveCricket
	Bird
)

Jump to

Keyboard shortcuts

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