Skip to content

Commit

Permalink
go1 fixes, fixes for go get, build samples in own folders so they bui…
Browse files Browse the repository at this point in the history
…ld with go build
  • Loading branch information
colemickens committed Apr 13, 2012
1 parent d00d930 commit 4d0037c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion samples/8queens.go → samples/8queens/8queens.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
".."
"fmt"
genetic "github.com/handcraftsman/GeneticGo"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -119,6 +119,15 @@ func getAttackablePositions(x, y, boardWidthHeight int, nextPosition chan string
close(nextPosition)
}

/*
func generatePositions(direction, x, y, boardWidthHeight int, nextPosition chan string, quit *bool)
return func(x, y, boardWidthHeight, nextPosition, quit) {
if direction ==
generatePositions(x, y, )
}
}
*/

func generatePositionsNorth(x, y, boardWidthHeight int, nextPosition chan string, quit *bool) {
generatePositions(x, y, North, Same, boardWidthHeight, nextPosition, quit)
}
Expand Down
2 changes: 1 addition & 1 deletion samples/regex.go → samples/regex/regex.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
".."
"fmt"
genetic "github.com/handcraftsman/GeneticGo"
"math"
"regexp"
"strings"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
".."
"fmt"
genetic "github.com/handcraftsman/GeneticGo"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion samples/tsp.go → samples/tsp/tsp.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
".."
"flag"
"fmt"
"github.com/handcraftsman/File"
genetic "github.com/handcraftsman/GeneticGo"
"math"
"strconv"
"strings"
Expand Down

0 comments on commit 4d0037c

Please sign in to comment.