Esempio n. 1
0
// GenRandom will generate a random board
func GenRandom() [9][9]int {
	dif := logic.RandomDif()
	board := RandomBoard()
	n := logic.LevelNumber(dif)
	newBoard := RemoveVals(board, n)
	return newBoard
}
Esempio n. 2
0
// Generate will generate a random board by input: easy, medium, hard
func Generate(dif string) [9][9]int {
	board := RandomBoard()
	n := logic.LevelNumber(dif)
	newBoard := RemoveVals(board, n)
	return newBoard
}