player

package
v0.24.8 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Overview

Package player provides a console like game.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadGob added in v0.24.7

func LoadGob(inPath string, pd *raw.Data) (err error)

deserialize from the passed path

func PlayGame

func PlayGame(mdlFile, testString, scene string) error

open db, select tests, de-gob and run them each in turn. print the results, only error on critical errors

func PlayWithOptions

func PlayWithOptions(mdlFile, testString, scene string, opts qna.Options) (err error)

Types

type Persistence added in v0.24.7

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

func (Persistence) LoadGame added in v0.24.7

func (p Persistence) LoadGame(scene string) (ret string, err error)

func (Persistence) SaveGame added in v0.24.7

func (p Persistence) SaveGame(scene string) (ret string, err error)

Jump to

Keyboard shortcuts

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