equal
deleted
inserted
replaced
1 // Copyright (C) 2016 Mikael Berthe <mikael@lilotux.net>. All rights reserved. |
1 // Copyright (C) 2016 Mikael Berthe <mikael@lilotux.net>. All rights reserved. |
2 // Use of this source code is governed by the MIT license, |
2 // Use of this source code is governed by the MIT license, |
3 // which can be found in the LICENSE file. |
3 // which can be found in the LICENSE file. |
|
4 |
|
5 // gotak is a CLI wrapper for the takuzu package. |
4 |
6 |
5 package main |
7 package main |
6 |
8 |
7 import ( |
9 import ( |
8 "fmt" |
10 "fmt" |
10 "os" |
12 "os" |
11 "time" |
13 "time" |
12 |
14 |
13 flag "github.com/docker/docker/pkg/mflag" |
15 flag "github.com/docker/docker/pkg/mflag" |
14 |
16 |
15 "mikael/takuzu" |
17 "hg.lilotux.net/golang/mikael/takuzu" |
16 ) |
18 ) |
17 |
19 |
18 var verbosity int |
20 var verbosity int |
19 |
21 |
20 func newTakuzuGameBoard(size int, simple bool, jobs int, buildBoardTimeout, reduceBoardTimeout time.Duration, minRatio, maxRatio int) *takuzu.Takuzu { |
22 func newTakuzuGameBoard(size int, simple bool, jobs int, buildBoardTimeout, reduceBoardTimeout time.Duration, minRatio, maxRatio int) *takuzu.Takuzu { |