MCPcopy Create free account
hub / github.com/geekcomputers/Python / move

Function move

BoardGame-CLI/snakeLadder.py:105–114  ·  view source on GitHub ↗
(a, i)

Source from the content-addressed store, hash-verified

103
104# Move method
105def move(a, i):
106 global players
107 global imp
108 temp_loc = players[i]
109
110 if (temp_loc) < 100:
111 temp_loc = ladder(temp_loc, i)
112 temp_loc = snake(temp_loc, i)
113
114 return temp_loc
115
116
117# snake bite code

Callers 2

playFunction · 0.85
move_folderFunction · 0.85

Calls 2

ladderFunction · 0.85
snakeFunction · 0.85

Tested by

no test coverage detected