challenge

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIQuestionInfo

type AIQuestionInfo struct {
	AIQuestionId   string
	QuestionPoolId string
	Timeout        int // minute
	RetryTimes     int
}

type Challenge

type Challenge interface {
	GetChallenge() ChallengeInfo
	CalcCompetitionScore([]domain.CompetitionSubmissionInfo) int
	CalcCompetitionScoreForAll([]domain.CompetitionSubmission) map[string]int
	CalcAIQuestionScore(result, answer []string) int

	GenAIQuestionNums() (choice, completion []int)
}

type ChallengeInfo

type ChallengeInfo struct {
	Competition []string

	AIQuestionInfo
}

Jump to

Keyboard shortcuts

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