mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 12:25:10 -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:
@@ -27,7 +27,7 @@ A quick fix for this bug in the original code would be
|
||||
|
||||
1450 V3=ABS(INT(V1-V2))
|
||||
1451 A=INT(A+V3)
|
||||
|
||||
|
||||
...judging from the description of tourist income on basic line 1410
|
||||
|
||||
1410 PRINT " YOU MADE";ABS(INT(V1-V2));"RALLODS FROM TOURIST TRADE."
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -248,7 +248,7 @@
|
||||
1969 PRINT "HOW MUCH DID YOU HAVE IN THE TREASURY";
|
||||
1970 INPUT A
|
||||
1971 IF A<0 THEN 1590
|
||||
1975 PRINT "HOW MANY COUNTRYMEN";
|
||||
1975 PRINT "HOW MANY COUNTRYMEN";
|
||||
1976 INPUT B
|
||||
1977 IF B<0 THEN 1590
|
||||
1980 PRINT "HOW MANY WORKERS";
|
||||
|
||||
@@ -285,7 +285,7 @@ REM I think tourism calculations are actually wrong in the original code!
|
||||
1969 PRINT "HOW MUCH DID YOU HAVE IN THE TREASURY";
|
||||
1970 INPUT RALLODS
|
||||
1971 IF RALLODS<0 THEN 1590
|
||||
1975 PRINT "HOW MANY COUNTRYMEN";
|
||||
1975 PRINT "HOW MANY COUNTRYMEN";
|
||||
1976 INPUT COUNTRYMEN
|
||||
1977 IF COUNTRYMEN<0 THEN 1590
|
||||
1980 PRINT "HOW MANY WORKERS";
|
||||
|
||||
@@ -145,15 +145,15 @@ sealed class YearOutcome {
|
||||
// The misspelling of "successfully" is in the original code.
|
||||
println(
|
||||
"""
|
||||
|
||||
|
||||
CONGRATULATIONS!!!!!!!!!!!!!!!!!!
|
||||
YOU HAVE SUCCESFULLY COMPLETED YOUR $yearsRequired YEAR TERM
|
||||
OF OFFICE. YOU WERE, OF COURSE, EXTREMELY LUCKY, BUT
|
||||
NEVERTHELESS, IT'S QUITE AN ACHIEVEMENT. GOODBYE AND GOOD
|
||||
LUCK - YOU'LL PROBABLY NEED IT IF YOU'RE THE TYPE THAT
|
||||
PLAYS THIS GAME.
|
||||
|
||||
|
||||
|
||||
|
||||
""".trimIndent()
|
||||
)
|
||||
}
|
||||
@@ -180,8 +180,8 @@ sealed class YearOutcome {
|
||||
override fun displayConsequences() {
|
||||
println(
|
||||
"""
|
||||
|
||||
|
||||
|
||||
|
||||
OVER ONE THIRD OF THE POPULTATION HAS DIED SINCE YOU
|
||||
WERE ELECTED TO OFFICE. THE PEOPLE (REMAINING)
|
||||
HATE YOUR GUTS.
|
||||
|
||||
Reference in New Issue
Block a user