mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-07 10:50:53 -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:
@@ -12,10 +12,10 @@ function input()
|
||||
{
|
||||
var input_element;
|
||||
var input_str;
|
||||
|
||||
|
||||
return new Promise(function (resolve) {
|
||||
input_element = document.createElement("INPUT");
|
||||
|
||||
|
||||
print("? ");
|
||||
input_element.setAttribute("type", "text");
|
||||
input_element.setAttribute("length", "50");
|
||||
|
||||
@@ -38,7 +38,7 @@ def do_quiz():
|
||||
print(f"A BALL IS THROWN UPWARDS AT {v0} METERS PER SECOND.")
|
||||
print()
|
||||
|
||||
answer = v0 ** 2 / (2 * g)
|
||||
answer = v0**2 / (2 * g)
|
||||
num_questions_correct += ask_player("HOW HIGH WILL IT GO (IN METERS)?", answer)
|
||||
|
||||
answer = 2 * v0 / g
|
||||
|
||||
Reference in New Issue
Block a user