mirror of
https://github.com/syuilo/ai.git
synced 2024-11-24 22:01:07 +00:00
Fix
This commit is contained in:
parent
14ca9a2847
commit
256a2d25b0
|
@ -93,7 +93,7 @@ export default class GuessingGameModule implements IModule {
|
||||||
} else {
|
} else {
|
||||||
if (guess.length > 3) return;
|
if (guess.length > 3) return;
|
||||||
|
|
||||||
const g = parseInt(guess, 10);
|
const g = parseInt(guess[0], 10);
|
||||||
|
|
||||||
const firsttime = exist.tries.indexOf(g) === -1;
|
const firsttime = exist.tries.indexOf(g) === -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue