Documentation ¶
Index ¶
- func NewBinaryToDecimal(difficulty float32) questions.Question
- func NewBinaryToDecimalWithId(id string, difficulty float32) questions.Question
- func NewDecimalToBinary(difficulty float32) questions.Question
- func NewDecimalToBinaryWithId(id string, difficulty float32) questions.Question
- type BinaryToDecimal
- type DecimalToBinary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBinaryToDecimal ¶
func NewDecimalToBinary ¶
Types ¶
type BinaryToDecimal ¶
type BinaryToDecimal struct {
questions.BaseQuestion
}
func (*BinaryToDecimal) GenerateQuestion ¶ added in v0.5.0
func (btd *BinaryToDecimal) GenerateQuestion() (string, string)
generateBinaryToDecimalQuestion generates a binary-to-decimal question based on the given difficulty level and seed.
type DecimalToBinary ¶
type DecimalToBinary struct {
questions.BaseQuestion
}
func (*DecimalToBinary) GenerateQuestion ¶ added in v0.5.0
func (dtb *DecimalToBinary) GenerateQuestion() (string, string)
generateBinaryToDecimalQuestion generates a binary-to-decimal question based on the given difficulty level and seed.
Click to show internal directories.
Click to hide internal directories.