mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -08:00
Merge pull request #456 from havoclad/main
Fix exception if choice 2 for damage is selected
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
*.class
|
||||||
*/.vs
|
*/.vs
|
||||||
*.suo
|
*.suo
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ function tab(space)
|
|||||||
// Main program
|
// Main program
|
||||||
async function main()
|
async function main()
|
||||||
{
|
{
|
||||||
|
s = 0;
|
||||||
|
t = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
print("YOU ARE A PILOT IN A WORLD WAR II BOMBER.\n");
|
print("YOU ARE A PILOT IN A WORLD WAR II BOMBER.\n");
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user