cli

package
v0.0.0-...-9e740c1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package cli contains the command-line interface of Tetris-AI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

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

CLI is the command-line interface of Tetris-ai. CLI encapsulates an AI that plays tetris and visualization logic. The zero value of CLI is not usable, function New should be used to create one.

func New

func New() *CLI

New creates and initializes a new CLI.

func (*CLI) Start

func (cli *CLI) Start()

Start starts the AI's game.

Jump to

Keyboard shortcuts

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