()
| 203 | } |
| 204 | async run() { |
| 205 | const tryRecognize = async () => { |
| 206 | const x = await this.recognize(); |
| 207 | if (x > 0) { |
| 208 | return x; |
| 209 | } |
| 210 | // retry |
| 211 | return await tryRecognize(); |
| 212 | }; |
| 213 | const puzzleX = await tryRecognize(); |
| 214 | console.log(puzzleX); |
| 215 | const pos = new MousePosFaker(puzzleX).run(); |