Number Input Fix

This commit is contained in:
ssyyhhrr
2022-06-20 19:22:03 +01:00
parent 98d9d2bc67
commit 96e37270fe
2 changed files with 10 additions and 6 deletions

2
app.js
View File

@@ -180,7 +180,7 @@ function server() {
else response.push(3) // incorrect nationality
// constructors
if (guess.constructors[guess.constructors.length - 1] == actual.constructors[guess.constructors.length - 1]) response.push(1) // correct constructor
if (guess.constructors[guess.constructors.length - 1] == actual.constructors[actual.constructors.length - 1]) response.push(1) // correct constructor
else if (actual.constructors.includes(guess.constructors[guess.constructors.length - 1])) response.push(4) // previous constructor
else response.push(3) // incorrect constructor