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

Function displayLetterLabels

src/gamesbyexample/gomoku.py:87–92  ·  view source on GitHub ↗

Display a row of letter labels, based on the BOARD_WIDTH.

()

Source from the content-addressed store, hash-verified

85
86
87def displayLetterLabels():
88 """Display a row of letter labels, based on the BOARD_WIDTH."""
89 print(' ', end='') # Print the indentation.
90 for x in range(BOARD_WIDTH):
91 print(chr(65 + x) + ' ', end='') # Print the letter.
92 print() # Print a newline.
93
94
95def askForPlayerMove(player, board):

Callers 1

displayBoardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected