mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be many adjustments necessary
This commit is contained in:
@@ -55,7 +55,7 @@ def reverseIt (howManyToReverse, triesSoFar)
|
||||
# extract and reverse the first howManyToReverse elements of the array
|
||||
subArray = $digitArray.take(howManyToReverse)
|
||||
subArray.reverse!
|
||||
|
||||
|
||||
# get the remaining elements of the original array
|
||||
endArray = $digitArray.slice(howManyToReverse, ARRAYSIZE)
|
||||
# append those elements to the reversed elements
|
||||
@@ -108,4 +108,3 @@ while r != 0 do # zero will end the game
|
||||
end
|
||||
r = askHowManyToReverse
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user