Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chukwumaijem/ludo-game
/ functions
Functions
91 in github.com/chukwumaijem/ludo-game
⨍
Functions
91
◇
Types & classes
7
↓ 7 callers
Function
findSeedGroup
(state, seedId)
src/utils/moveSeed.js:32
↓ 6 callers
Function
sendNotification
(data)
src/actions/gameData.js:58
↓ 3 callers
Function
getSeedPosition
* getSeedPosition * * gets the current position of a seed
src/utils/moveSeed.js:58
↓ 3 callers
Function
moveSeed
(data)
src/actions/gameData.js:13
↓ 3 callers
Function
setDisabled
(data)
src/actions/gameData.js:90
↓ 2 callers
Function
buildRails
(col, row, size, position, colour, seedData)
src/utils/buildRails.js:5
↓ 2 callers
Function
checkForWins
* checkForWins * * Takes a seedgroup, checks if all seeds are home. * If true, send notification and remove house from loop
src/utils/moveSeed.js:93
↓ 2 callers
Function
disableEmptyHouses
(setDisabled, numberOfPlayers)
src/helpers/disableEmptyHouses.js:1
↓ 2 callers
Function
getLudoSeeds
(gameData)
src/utils/moveSeed.js:77
↓ 2 callers
Function
makeSeedMove
* makeSeedMove * * Dispatches the updated seed position
src/utils/moveSeed.js:150
↓ 2 callers
Function
makeStateCopy
()
src/reducers/gameData.js:57
↓ 2 callers
Function
registerValidSW
(swUrl)
src/registerServiceWorker.js:46
↓ 1 callers
Function
changeTurn
()
src/actions/gameData.js:66
↓ 1 callers
Function
changeTurnAction
()
src/actions/gameData.js:62
↓ 1 callers
Function
checkValidServiceWorker
(swUrl)
src/registerServiceWorker.js:75
↓ 1 callers
Function
createNotification
(data)
src/actions/gameData.js:54
↓ 1 callers
Function
createWindow
()
main.js:9
↓ 1 callers
Function
disableInactiveSeed
(data)
src/actions/gameData.js:23
↓ 1 callers
Function
hasAlternativeMove
(seedGroup)
src/utils/moveSeed.js:176
↓ 1 callers
Function
hlOnePath
* hlOnePath * * This method handles movement on Hl rail's * second row(HL-1).
src/utils/seedPath.js:104
↓ 1 callers
Function
hlPath
* hlPath * * This method is responsible for movement * on the Left Horizontal rails
src/utils/seedPath.js:62
↓ 1 callers
Function
hlTwoPath
* hlTwoPath * * This method handles movement on Hl rail's * third row(HL-2).
src/utils/seedPath.js:125
↓ 1 callers
Function
hlZeroPath
* hlZeroPath * * This method handles movement on HL rail's * first row(HL-0).
src/utils/seedPath.js:87
↓ 1 callers
Function
hrOnePath
* hrOnePath * * This method handles movement on the second column * of the HR rail(HR-1).
src/utils/seedPath.js:268
↓ 1 callers
Function
hrPath
* hrPath * * This method handles movement on the right * horizontal rail.
src/utils/seedPath.js:226
↓ 1 callers
Function
hrTwoPath
* hrTwoPath * * This method handles movement on the third column * of the HR rail(HR-2).
src/utils/seedPath.js:289
↓ 1 callers
Function
hrZeroPath
* hrZeroPath * * This method handles movement on the first column * of the HR rail(HR-0).
src/utils/seedPath.js:251
↓ 1 callers
Function
invalidPlay
* invalidPlay * * Hanldes conditions that can make a play invalid
src/utils/moveSeed.js:200
↓ 1 callers
Function
killSeed
* killSeed * * returns a seed to its house if another seeds * move ends at its position.
src/utils/moveSeed.js:116
↓ 1 callers
Function
mapDispatchToProps
(dispatch)
src/containers/GamePlay/index.js:58
↓ 1 callers
Function
newSeedPosition
(seedId, currentSeedPosition)
src/utils/seedPath.js:34
↓ 1 callers
Function
nextTurn
(state)
src/reducers/gameData.js:8
↓ 1 callers
Function
numberOfPlayers
(data)
src/actions/gameData.js:70
↓ 1 callers
Function
numberOfPlayersUpdated
()
src/actions/gameData.js:73
↓ 1 callers
Function
removeNotification
(data)
src/actions/gameData.js:46
↓ 1 callers
Function
removePlayerFromList
(player)
src/actions/gameData.js:97
↓ 1 callers
Function
removePlayerFromlist
(state, player)
src/reducers/gameData.js:47
↓ 1 callers
Function
resetGameData
(data)
src/actions/gameData.js:109
↓ 1 callers
Function
resultToGlobalState
(data)
src/actions/gameData.js:101
↓ 1 callers
Function
seedRemainingMoves
* seedRemainingMoves * * gets the remaining number of moves for a seed
src/utils/moveSeed.js:67
↓ 1 callers
Function
selectedSeed
(data)
src/actions/gameData.js:38
↓ 1 callers
Function
setBoardSettings
(data)
src/actions/boardSettings.js:4
↓ 1 callers
Function
setColours
(data)
src/actions/gameData.js:5
↓ 1 callers
Function
setColours
(state, action)
src/utils/moveSeed.js:19
↓ 1 callers
Function
setDieCastComplete
()
src/actions/gameData.js:31
↓ 1 callers
Function
setDisabledHouse
(data)
src/actions/gameData.js:84
↓ 1 callers
Function
setDisabledHousesComplete
()
src/actions/gameData.js:87
↓ 1 callers
Function
setHouseOrder
(house)
src/reducers/gameData.js:17
↓ 1 callers
Function
setInitialPlayerTurn
(state)
src/reducers/gameData.js:28
↓ 1 callers
Function
setResultToGlobalState
(data)
src/actions/gameData.js:105
↓ 1 callers
Function
setSeedPosition
(data)
src/utils/moveSeed.js:246
↓ 1 callers
Function
setSelectedSeed
(id)
src/actions/gameData.js:42
↓ 1 callers
Function
startPoint
(seedId)
src/utils/seedPath.js:7
↓ 1 callers
Function
updateSettings
(state, data)
src/reducers/boardSettings.js:8
↓ 1 callers
Function
vbOnePath
* vbOnePath * * This method handles movement on the second column * of VB. Should be VB-(*)0, but for simplicity * the (*) was removed.
src/utils/seedPath.js:351
↓ 1 callers
Function
vbPath
* vbPath * * This method handles movement on the Bottom vertical * rail.
src/utils/seedPath.js:306
↓ 1 callers
Function
vbTwoPath
* vbTwoPath * * This method handles movement on the third column * of VB. Should be VB-(*)0, but for simplicity * the (*) was removed.
src/utils/seedPath.js:373
↓ 1 callers
Function
vbZeroPath
* vbZeroPath * * This method handles movement on the first column * of VB. Should be VB-(*)0, but for simplicity * the (*) was removed.
src/utils/seedPath.js:333
↓ 1 callers
Function
vtOnePath
* vtOnePath * * This method handles movement on the second column * of VT. Should be VT-(*)1, but for simplicity * the (*) was removed.
src/utils/seedPath.js:187
↓ 1 callers
Function
vtPath
* vtPath * * This method handles movement on the * top vertical rail.
src/utils/seedPath.js:142
↓ 1 callers
Function
vtTwoPath
* vtTwoPath * * This method handles movement on the third column * of VT. Should be VT-(*)2, but for simplicity * the (*) was removed.
src/utils/seedPath.js:209
↓ 1 callers
Function
vtZeroPath
* vtZeroPath * * This method handles movement on the first column * of VT. Should be VT-(*)0, but for simplicity * the (*) was removed.
src/utils/seedPath.js:169
Function
Footer
()
src/components/Footer/index.js:4
Function
Game
()
src/index.js:40
Function
GameChat
()
src/components/GameChat/index.js:5
Function
HRailFrame
({ HRailHeight, boxColour, boxPosition, disabled, seedData })
src/components/Rails/index.js:13
Function
Home
()
src/index.js:30
Function
HowToPlay
()
src/containers/HowToPlay/index.js:78
Function
NotFound
()
src/index.js:20
Function
PageHeader
()
src/components/Header/index.js:3
Function
VRailFrame
({ VRailHeight, boxPosition, boxColour, seedData, disabled })
src/components/Rails/index.js:4
Function
buildSeed
(seedPosition, seedData, size)
src/utils/buildRails.js:55
Function
clearNotification
(data)
src/actions/gameData.js:50
Function
componentDidMount
()
src/components/Houses/index.js:12
Function
componentDidMount
()
src/components/SideBoard/index.js:53
Method
componentDidMount
()
src/containers/GamePlay/index.js:12
Function
dieCastComplete
()
src/actions/gameData.js:34
Function
disableInactiveHouseSeed
(activeHouse)
src/actions/gameData.js:27
Function
gameData
(state = makeStateCopy(), action)
src/reducers/gameData.js:61
Function
gameData
(state = initialState, action)
src/reducers/boardSettings.js:15
Function
gameDataReset
(data)
src/actions/gameData.js:113
Function
getDerivedStateFromProps
(props, state)
src/components/SideBoard/index.js:43
Method
getDerivedStateFromProps
(nextProps, prevState)
src/containers/GamePlay/index.js:25
Function
mapStateToProps
({ gameData, gameSettings })
src/containers/GamePlay/index.js:52
Function
moveSeedToPosition
(seed, position, cb)
src/actions/gameData.js:17
Function
register
()
src/registerServiceWorker.js:21
Method
render
()
src/containers/GamePlay/index.js:34
Function
setHouseColours
(colours)
src/actions/gameData.js:9
Function
setNumberOfPlayers
(data)
src/actions/gameData.js:76
Function
unregister
()
src/registerServiceWorker.js:102
Function
updateBoardSettings
(data)
src/actions/boardSettings.js:8