()
| 151 | |
| 152 | async run(tag) { |
| 153 | const tryRecognize = async () => { |
| 154 | const x = await this.recognize(); |
| 155 | |
| 156 | if (x > 0) { |
| 157 | return x; |
| 158 | } |
| 159 | // retry |
| 160 | return await tryRecognize(); |
| 161 | }; |
| 162 | const puzzleX = await tryRecognize(); |
| 163 | const pos = new MousePosFaker(puzzleX).run(); |
| 164 | const d = getCoordinate(pos); |