datatype

package
v0.0.0-...-210b6bb Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	Id     int       `json:"id"`
	Dx     Position  `json:"dx"`
	Dy     Position  `json:"dy"`
	Data   [][]State `json:"data"`
	Next   User      `json:"nextUser"`
	Winner User      `json:"winner"`
}

type Position

type Position int8

type State

type State string
const (
	EMPTY State = "empty"
	O     State = "o"
	X     State = "x"
)

type User

type User string
const (
	NO_USER User = "no_user"
	O_User  User = "o"
	X_User  User = "x"
)

Jump to

Keyboard shortcuts

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