(x1, y1, x2, y2, { map } = this)
| 37 | } |
| 38 | |
| 39 | getScore (x1, y1, x2, y2, { map } = this) { |
| 40 | const [ aKey, bKey ] = [ this.getKey(x1, y2), this.getKey(x2, y1) ]; |
| 41 | const [ aScore, bScore ] = [ (map[aKey] || 0), (map[bKey] || 0) ]; |
| 42 | |
| 43 | return (aScore * bScore); |
| 44 | } |
| 45 | }; |
| 46 | |
| 47 | /** |