camp

package
v0.0.0-...-5cc4ecd Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	Width       int     `json:"width"`
	Height      int     `json:"height"`
	Trees       int     `json:"trees"`
	RowTents    []int   `json:"rowTents"`
	ColumnTents []int   `json:"columnTents"`
	Task        [][]int `json:"task"`
	Solution    [][]int `json:"solution,omitempty"`
}

func Generate

func Generate(w, h int) (Core, error)

type VerifyResult

type VerifyResult struct {
	IsValid  bool   `json:"isValid"`
	Position string `json:"position"`
	Message  string `json:"message"`
}

func Verify

func Verify(field [][]int, rowTents, columnTents []int) (VerifyResult, error)

Jump to

Keyboard shortcuts

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