Skip to content

Commit ca36adb

Browse files
author
Fred
committed
tidy up package name
1 parent 44b2a44 commit ca36adb

14 files changed

+18
-28
lines changed

algo/aldousbroder.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package algo
22

3-
import (
4-
"github.com/fred1268/maze/maze"
5-
)
3+
import "github.com/fred1268/amaze/maze"
64

75
func AldousBroder(m *maze.Maze) {
86
cell := m.GetCell(rnd.Int()%m.Width, rnd.Int()%m.Length)

algo/btree.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package algo
22

33
import (
4-
"github.com/fred1268/maze/maze"
4+
"github.com/fred1268/amaze/maze"
55
)
66

77
func BinaryTree(m *maze.Maze) {

algo/growingtree.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package algo
22

33
import (
4-
"github.com/fred1268/maze/maze"
4+
"github.com/fred1268/amaze/maze"
55
"golang.org/x/exp/slices"
66
)
77

algo/huntandkill.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package algo
22

33
import (
4-
"github.com/fred1268/maze/maze"
4+
"github.com/fred1268/amaze/maze"
55
)
66

77
func huntAndKill_NextCell(m *maze.Maze) *maze.Cell {

algo/path.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package algo
22

33
import (
4-
"github.com/fred1268/maze/maze"
4+
"github.com/fred1268/amaze/maze"
55
)
66

77
type path struct {

algo/recursivebacktracker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package algo
22

33
import (
4-
"github.com/fred1268/maze/maze"
4+
"github.com/fred1268/amaze/maze"
55
)
66

77
func recursiveBacktracker_NextCell(m *maze.Maze, path *path) *maze.Cell {

algo/sidewinder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package algo
33
import (
44
"math/rand"
55

6-
"github.com/fred1268/maze/maze"
6+
"github.com/fred1268/amaze/maze"
77
)
88

99
func SideWinder(m *maze.Maze) {

algo/wilson.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package algo
22

33
import (
4-
"github.com/fred1268/maze/maze"
4+
"github.com/fred1268/amaze/maze"
55
)
66

77
func Wilson(m *maze.Maze) {

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
module github.com/fred1268/maze
1+
module github.com/fred1268/amaze
22

33
go 1.20
44

55
require (
66
github.com/fred1268/go-clap v1.1.0
77
github.com/g3n/engine v0.2.0
88
github.com/gookit/color v1.5.3
9-
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc
9+
golang.org/x/exp v0.0.0-20230519143937-03e91628a987
1010
)
1111

1212
require (

go.sum

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
2-
github.com/fred1268/go-clap v1.0.2 h1:7o0DzHexg1qgXMxVY4issbdrC4P/S58eHnA52Qp+Rs4=
3-
github.com/fred1268/go-clap v1.0.2/go.mod h1:A5/yYBapOy6UyujlbxL7p/bX9J7bzyoMRzQKFwveXF0=
42
github.com/fred1268/go-clap v1.1.0 h1:bxgST/3OvEls2mzkZaxbX5322x7bnSL5VnxAnYQNxIs=
53
github.com/fred1268/go-clap v1.1.0/go.mod h1:A5/yYBapOy6UyujlbxL7p/bX9J7bzyoMRzQKFwveXF0=
64
github.com/g3n/engine v0.2.0 h1:7dmj4c+3xHcBnYrVmRuVf/oZ2JycxJU9Y+2FQj1Af2Y=
@@ -14,17 +12,13 @@ github.com/gookit/color v1.5.3 h1:twfIhZs4QLCtimkP7MOxlF3A0U/5cDPseRT9M/+2SCE=
1412
github.com/gookit/color v1.5.3/go.mod h1:NUzwzeehUfl7GIb36pqId+UGmRfQcU/WiiyTTeNjHtE=
1513
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1614
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
17-
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHgvgickp1Yw510KJOqX7H24mg8=
18-
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs=
1915
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
2016
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
2117
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
2218
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
2319
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
24-
golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea h1:vLCWI/yYrdEHyN2JzIzPO3aaQJHQdp89IZBA/+azVC4=
25-
golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
26-
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU=
27-
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
20+
golang.org/x/exp v0.0.0-20230519143937-03e91628a987 h1:3xJIFvzUFbu4ls0BTBYcgbCGhA63eAOEMxIHugyXJqA=
21+
golang.org/x/exp v0.0.0-20230519143937-03e91628a987/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
2822
golang.org/x/image v0.0.0-20210607152325-775e3b0c77b9/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
2923
golang.org/x/image v0.7.0 h1:gzS29xtG1J5ybQlv0PuyfE3nmc6R4qB73m6LUUmvFuw=
3024
golang.org/x/image v0.7.0/go.mod h1:nd/q4ef1AKKYl/4kft7g+6UyGbdiqWqTP1ZAbRoV7Rg=
@@ -43,8 +37,6 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc
4337
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4438
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4539
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
46-
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
47-
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4840
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
4941
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
5042
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=

main.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"os"
66
"time"
77

8+
"github.com/fred1268/amaze/algo"
9+
"github.com/fred1268/amaze/maze"
10+
"github.com/fred1268/amaze/render"
811
"github.com/fred1268/go-clap/clap"
9-
"github.com/fred1268/maze/algo"
10-
"github.com/fred1268/maze/maze"
11-
"github.com/fred1268/maze/render"
1212
)
1313

1414
type Config struct {

render/cell.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package render
33
import (
44
"math"
55

6-
"github.com/fred1268/maze/maze"
6+
"github.com/fred1268/amaze/maze"
77
"github.com/g3n/engine/core"
88
"github.com/g3n/engine/geometry"
99
"github.com/g3n/engine/graphic"

render/render.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"time"
66

7-
"github.com/fred1268/maze/maze"
7+
"github.com/fred1268/amaze/maze"
88
"github.com/g3n/engine/app"
99
"github.com/g3n/engine/camera"
1010
"github.com/g3n/engine/core"

render/walls.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package render
22

33
import (
4-
"github.com/fred1268/maze/maze"
4+
"github.com/fred1268/amaze/maze"
55
"github.com/g3n/engine/core"
66
"github.com/g3n/engine/geometry"
77
"github.com/g3n/engine/graphic"

0 commit comments

Comments
 (0)