A JavaScript implementation of the newspaper game Spot the Ball.
Spot the ball is a game where players guess the position of the ball after viewing an altered photograph of a sporting event with the ball removed. Spot the ball was originally a newspaper game common in the 1970s and 1980s in the UK. This project is inspired by the New York Times World Cup version of the game.
Photo by Ed Schipul, licensed under the Creative Commons Attribution-Share Alike 2.0 license.
More examples with real guess data can be found on MLSsoccer.com
new SpotTheBall(element,
// options
id: 'spot-the-ball-demo',
size: {x: 750, y: 500, ball: 35},
solution: {x: 634, y: 455},
challengeImage: 'challenge.jpg',
solutionImage: 'solution.jpg',
onGuess: function(guess, distance) {
...
}
);