Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danicat/pacgo
/ functions
Functions
142 in github.com/danicat/pacgo
⨍
Functions
142
◇
Types & classes
24
↓ 8 callers
Function
moveCursor
(row, col int)
step09/main.go:95
↓ 8 callers
Function
moveCursor
(row, col int)
step10/main.go:113
↓ 5 callers
Function
moveCursor
(row, col int)
step08/main.go:91
↓ 5 callers
Function
moveCursor
(row, col int)
step07/main.go:85
↓ 4 callers
Method
Cost
()
stepxx/chaser.go:111
↓ 4 callers
Function
IsLegal
(pos Point)
stepxx/sprite.go:60
↓ 4 callers
Function
moveCursor
(row, col int)
stepxx/screen.go:32
↓ 4 callers
Function
updateGhosts
(ghosts []*ghost, ghostStatus GhostStatus)
step10/main.go:253
↓ 3 callers
Function
distance
(p1, p2 Point)
stepxx/chaser.go:134
↓ 3 callers
Function
makeMove
(oldPos Point, dir string)
stepxx/sprite.go:64
↓ 2 callers
Method
Kill
()
stepxx/player.go:37
↓ 2 callers
Method
Pos
()
stepxx/sprite.go:8
↓ 2 callers
Function
abs
(n int)
stepxx/chaser.go:129
↓ 2 callers
Function
makeMove
(oldRow, oldCol int, dir string)
step09/main.go:176
↓ 2 callers
Function
makeMove
(oldRow, oldCol int, dir string)
step08/main.go:157
↓ 2 callers
Function
makeMove
(oldRow, oldCol int, dir string)
step10/main.go:200
↓ 2 callers
Function
makeMove
(oldRow, oldCol int, dir string)
step05/main.go:111
↓ 2 callers
Function
makeMove
(oldRow, oldCol int, dir string)
step07/main.go:151
↓ 2 callers
Function
makeMove
(oldRow, oldCol int, dir string)
step04/main.go:104
↓ 2 callers
Function
makeMove
(oldRow, oldCol int, dir string)
step06/main.go:112
↓ 2 callers
Method
nextPoint
()
stepxx/chaser.go:115
↓ 1 callers
Method
Down
()
stepxx/sprite.go:27
↓ 1 callers
Method
Img
()
stepxx/sprite.go:9
↓ 1 callers
Method
Left
()
stepxx/sprite.go:38
↓ 1 callers
Method
Move
()
stepxx/sprite.go:7
↓ 1 callers
Function
NewChaser
NewChaser creates a new ghost
stepxx/chaser.go:12
↓ 1 callers
Function
NewGhost
NewGhost creates a new ghost
stepxx/ghost.go:12
↓ 1 callers
Function
NewPlayer
NewPlayer creates a new player
stepxx/player.go:18
↓ 1 callers
Method
Right
()
stepxx/sprite.go:49
↓ 1 callers
Method
Up
()
stepxx/sprite.go:16
↓ 1 callers
Function
cleanup
()
step09/main.go:256
↓ 1 callers
Function
cleanup
()
step08/main.go:237
↓ 1 callers
Function
cleanup
()
step10/main.go:306
↓ 1 callers
Function
cleanup
()
step05/main.go:184
↓ 1 callers
Function
cleanup
()
step07/main.go:231
↓ 1 callers
Function
cleanup
()
step04/main.go:170
↓ 1 callers
Function
cleanup
stty -cbreak echo
stepxx/screen.go:22
↓ 1 callers
Function
cleanup
()
step06/main.go:185
↓ 1 callers
Function
cleanup
()
step02/main.go:63
↓ 1 callers
Function
cleanup
()
step03/main.go:143
↓ 1 callers
Function
drawDirection
()
step09/main.go:228
↓ 1 callers
Function
drawDirection
()
step08/main.go:209
↓ 1 callers
Function
drawDirection
()
step10/main.go:278
↓ 1 callers
Function
drawDirection
()
step05/main.go:156
↓ 1 callers
Function
drawDirection
()
step07/main.go:203
↓ 1 callers
Function
drawDirection
()
step04/main.go:142
↓ 1 callers
Function
drawDirection
()
step06/main.go:157
↓ 1 callers
Method
drawDirection
()
stepxx/ghost.go:43
↓ 1 callers
Method
drawDirection
()
stepxx/chaser.go:50
↓ 1 callers
Method
find
implements A* pathfinding algorithm move cost = 1 no diagonal movement allowed heuristic = manhattan distance
stepxx/chaser.go:65
↓ 1 callers
Function
getLivesAsEmoji
concatenate the correct number of player emojis based on lives
step09/main.go:140
↓ 1 callers
Function
getLivesAsEmoji
concatenate the correct number of player emojis based on lives
step10/main.go:164
↓ 1 callers
Function
giveDirection
(curr, dest Point)
stepxx/chaser.go:83
↓ 1 callers
Function
initialise
()
step09/main.go:246
↓ 1 callers
Function
initialise
()
step08/main.go:227
↓ 1 callers
Function
initialise
()
step10/main.go:296
↓ 1 callers
Function
initialise
()
step05/main.go:174
↓ 1 callers
Function
initialise
()
step07/main.go:221
↓ 1 callers
Function
initialise
()
step04/main.go:160
↓ 1 callers
Function
initialise
()
stepxx/screen.go:11
↓ 1 callers
Function
initialise
()
step06/main.go:175
↓ 1 callers
Function
initialise
()
step02/main.go:53
↓ 1 callers
Function
initialise
()
step03/main.go:133
↓ 1 callers
Method
isClosed
(p Point)
stepxx/chaser.go:138
↓ 1 callers
Method
isOpen
(p Point)
stepxx/chaser.go:143
↓ 1 callers
Function
loadConfig
(file string)
step09/main.go:50
↓ 1 callers
Function
loadConfig
(file string)
step08/main.go:46
↓ 1 callers
Function
loadConfig
(file string)
step10/main.go:68
↓ 1 callers
Function
loadConfig
(file string)
step07/main.go:40
↓ 1 callers
Function
loadConfig
()
stepxx/main.go:39
↓ 1 callers
Function
loadMaze
(file string)
step09/main.go:66
↓ 1 callers
Function
loadMaze
(file string)
step08/main.go:62
↓ 1 callers
Function
loadMaze
(file string)
step10/main.go:84
↓ 1 callers
Function
loadMaze
(file string)
step05/main.go:26
↓ 1 callers
Function
loadMaze
(file string)
step01/main.go:12
↓ 1 callers
Function
loadMaze
(file string)
step07/main.go:56
↓ 1 callers
Function
loadMaze
(file string)
step04/main.go:23
↓ 1 callers
Function
loadMaze
()
stepxx/main.go:60
↓ 1 callers
Function
loadMaze
(file string)
step06/main.go:27
↓ 1 callers
Function
loadMaze
(file string)
step02/main.go:15
↓ 1 callers
Function
loadMaze
(file string)
step03/main.go:21
↓ 1 callers
Function
makeMove
(oldRow, oldCol int, dir string)
step03/main.go:95
↓ 1 callers
Function
moveGhosts
()
step09/main.go:239
↓ 1 callers
Function
moveGhosts
()
step08/main.go:220
↓ 1 callers
Function
moveGhosts
()
step10/main.go:289
↓ 1 callers
Function
moveGhosts
()
step05/main.go:167
↓ 1 callers
Function
moveGhosts
()
step07/main.go:214
↓ 1 callers
Function
moveGhosts
()
step04/main.go:153
↓ 1 callers
Function
moveGhosts
()
step06/main.go:168
↓ 1 callers
Function
movePlayer
(dir string)
step09/main.go:210
↓ 1 callers
Function
movePlayer
(dir string)
step08/main.go:191
↓ 1 callers
Function
movePlayer
(dir string)
step10/main.go:234
↓ 1 callers
Function
movePlayer
(dir string)
step05/main.go:145
↓ 1 callers
Function
movePlayer
(dir string)
step07/main.go:185
↓ 1 callers
Function
movePlayer
(dir string)
step04/main.go:138
↓ 1 callers
Function
movePlayer
(dir string)
step06/main.go:146
↓ 1 callers
Function
movePlayer
(dir string)
step03/main.go:129
↓ 1 callers
Method
movePlayer
(dir string)
stepxx/player.go:60
↓ 1 callers
Function
printScreen
()
step09/main.go:103
↓ 1 callers
Function
printScreen
()
step08/main.go:99
next →
1–100 of 142, ranked by callers