computer

package
v0.0.0-...-d7178b9 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.2.513

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputerBoard

func ComputerBoard(bs *BoardState) templ.Component

func Layout

func Layout(userID string, bs *BoardState) templ.Component

Types

type BoardState

type BoardState struct {
	GameID      string
	Highlighted []int
	Pieces      map[int]string
	Moves       map[int]string
	Captures    map[int]string
	View        Side
}

type Side

type Side int
const (
	White Side = iota
	Black
)

Jump to

Keyboard shortcuts

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