You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
755 B

package main
import (
"math/rand"
"github.com/01-edu/z01"
correct "./correct"
)
func main() {
type node struct {
word string
n int
}
table := []node{}
for i := 0; i < 30; i++ {
wordToInput := z01.RandASCII()
val := node{
word: wordToInput,
n: rand.Intn(len(wordToInput)) + 1,
}
table = append(table, val)
}
table = append(table,
node{word: "Hello!", n: 3},
node{word: "Salut!", n: 2},
node{word: "Ola!", n: 4},
node{word: "♥01!", n: 1},
node{word: "Not", n: 6},
node{word: "Also not", n: 9},
node{word: "Tree house", n: 5},
node{word: "Whatever", n: 0},
node{word: "Whatshisname", n: -2},
)
for _, arg := range table {
z01.Challenge("NRuneProg", NRune, correct.NRune, arg.word, arg.n)
}
}