Documentation
¶
Index ¶
- func All[T any](ts []T, pred func(T) bool) bool
- type Answer
- type DFAState
- type DFAStateTransition
- type GridBox
- type GridBoxSolution
- type GridSolution
- type GridTestCase
- type Judge
- type NFAResult
- type NFAState
- type NFAStateTransition
- type Node
- type ReversiBoard
- type ReversiSpot
- type ReversiTile
- type Run
- type SingleOutputJudge
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Answer ¶
type Answer = config.HoleAnswer
Alias HoleAnswer into this package to reduce boilerplate in every callsite.
type DFAStateTransition ¶
type DFAStateTransition struct {
// contains filtered or unexported fields
}
type GridBoxSolution ¶
type GridBoxSolution struct {
// contains filtered or unexported fields
}
type GridSolution ¶
type GridSolution []GridBoxSolution
type GridTestCase ¶
type GridTestCase struct {
// contains filtered or unexported fields
}
type Judge ¶
An ultimate task of a Judge is to tell whether a run is passing or not. However, it does more. When the output is not recognised as correct, it returns a similar output that is.
type NFAStateTransition ¶
type NFAStateTransition struct {
// contains filtered or unexported fields
}
type ReversiBoard ¶
type ReversiBoard [reversiGridSize][reversiGridSize]ReversiTile
type ReversiSpot ¶
type ReversiTile ¶
type ReversiTile int8
const ( Empty ReversiTile = iota Black White PotentialSpot )
type Run ¶
type Run struct {
Answer string `json:"answer"`
Code string `json:"-"`
MultisetItemDelimiter string `json:"multiset_item_delimiter"`
OutputDelimiter string `json:"output_delimiter"`
Args []string `json:"args"`
ExitCode int `json:"exit_code"`
Pass bool `json:"pass"`
Stderr string `json:"stderr"`
Stdout string `json:"stdout"`
Time time.Duration `json:"time_ns,format:nano"`
Timeout bool `json:"timeout"`
// This is a bit hacky, the only way to discover how long an assembly
// solution is is to compile it so we store it here but don't JSON it.
ASMBytes int `json:"-"`
}
Run holds the results of running a given solution once.
type SingleOutputJudge ¶
A judge for a single output (corresponding to either a single input or a single preset output item)
Source Files
¶
- 0hole.go
- arabic-to-roman.go
- arrows.go
- billiards.go
- binary-lambda-calculus.go
- brainfuck.go
- calendar.go
- card-number-validation.go
- connect-four.go
- continued-fractions.go
- crossword.go
- css-colors-inverse.go
- css-grid.go
- day-of-week.go
- dfa-simulator.go
- ellipse-perimeters.go
- forsyth-edwards-notation.go
- fractions.go
- game-of-life.go
- gray-code.go
- intersection.go
- isbn.go
- jacobi-symbol.go
- judges.go
- levenshtein-distance.go
- lucky-tickets.go
- mahjong.go
- maze.go
- medal-tally.go
- morse.go
- multitap-input.go
- musical-chords.go
- nfa-simulator.go
- numbrix.go
- ordinal-numbers.go
- p-adic-expansion.go
- palindromemordnilap.go
- pangram-grep.go
- play.go
- poker.go
- qr.go
- quadratic-formula.go
- quine.go
- repeating-decimals.go
- reverse-polish-notation.go
- reversi.go
- rot13.go
- scrambled-sort.go
- set.go
- seven-segment.go
- si-units.go
- smooth-numbers.go
- snake.go
- spelling-numbers.go
- star-wars-gpt.go
- sudoku.go
- ten-pin-bowling.go
- time-distance.go
- topological-sort.go
- transpose-sentence.go
- turtle.go
- tutorial.go
- zeckendorf-representation.go
- zodiac-signs.go
Click to show internal directories.
Click to hide internal directories.