mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 04:15:45 -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");
|
||||
@@ -254,7 +254,7 @@ function evaluate_hand()
|
||||
function get_prompt(question, def)
|
||||
{
|
||||
var str;
|
||||
|
||||
|
||||
str = window.prompt(question, def);
|
||||
print(question + "? " + str + "\n");
|
||||
return str;
|
||||
@@ -339,7 +339,7 @@ function computer_low_in_money()
|
||||
function ask_for_bet()
|
||||
{
|
||||
var forced;
|
||||
|
||||
|
||||
if (t != Math.floor(t)) {
|
||||
if (k != 0 || g != 0 || t != 0.5) {
|
||||
print("NO SMALL CHANGE, PLEASE.\n");
|
||||
|
||||
Reference in New Issue
Block a user