models

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBinaryToDecimal

func NewBinaryToDecimal(difficulty float32) questions.Question

func NewBinaryToDecimalWithId

func NewBinaryToDecimalWithId(id string, difficulty float32) questions.Question

func NewDecimalToBinary

func NewDecimalToBinary(difficulty float32) questions.Question

func NewDecimalToBinaryWithId

func NewDecimalToBinaryWithId(id string, difficulty float32) questions.Question

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.

Jump to

Keyboard shortcuts

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