A bit of clarification

This commit is contained in:
Daniel Piron
2021-02-21 14:13:12 -05:00
parent ddbde3a0b5
commit e04e7627f1

View File

@@ -26,8 +26,8 @@ def display_intro():
def tab(column):
""" Analogous to TAB(X) in basic. Returns a string with ASCII codes for
setting the cursor to the specified column. """
""" Emulates the TAB command in BASIC. Returns a string with ASCII
codes for setting the cursor to the specified column. """
return "\r\33[{}C".format(column)
@@ -72,7 +72,7 @@ def play():
end = next(data)
# Unlike FOR I=X TO Y, the 'stop' argument of 'range' is non-inclusive, so we must add 1
for i in range(start, end+1, 1):
# Cycle through the letters in "BUNNY" as we draw this line
# Cycle through the letters in "BUNNY" as we draw line
j = i - 5 * int(i / 5)
print(chr(L + bunny[j]), end="")