MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / nextCol

Function nextCol

src/gamesbyexample/chancecheckers.py:115–120  ·  view source on GitHub ↗

Return the column letter that comes after column. Returns '' if column 'H'.

(column)

Source from the content-addressed store, hash-verified

113
114
115def nextCol(column):
116 """Return the column letter that comes after column.
117
118 Returns '' if column 'H'."""
119 return {'': '', 'A': 'B', 'B': 'C', 'C': 'D', 'D': 'E',
120 'E': 'F', 'F': 'G', 'G': 'H', 'H': ''}[column]
121
122
123def otherCheckers(checker):

Callers 2

getPossibleDstMovesFunction · 0.70
makeMoveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected