package
Version:
v0.0.0-...-4f046f1
Opens a new window with list of versions in this module.
Published: Jun 11, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
This is a non-optimized code that generates all the winning possibilities for a player
$ go run main.go | tail
[8 1 2 3 6 4 5 0 7]
[8 1 2 3 6 0 5 4 7]
[8 1 2 4 5 3 6 0 7]
[8 1 2 4 5 0 6 3 7]
[8 1 2 4 6 3 5 0 7]
[8 1 2 4 6 0 5 3 7]
[8 1 2 0 5 3 6 4 7]
[8 1 2 0 5 4 6 3 7]
[8 1 2 0 6 3 5 4 7]
[8 1 2 0 6 4 5 3 7]
$ go run main.go | wc -l
243936
Documentation
¶
func Generate() chan []int
Generate all the positions
1 starts the game
c := Generate()
for v := range c {
fmt.Println(v)
}
Output:
Source Files
¶
Click to show internal directories.
Click to hide internal directories.