The goal of the homework is to count scores for the Ticket to Ride Europe board game.
During the game, players connect different cities to complete some destination tickets. Every player has a set of train markers for claiming a route. At the end of the game, players got scores for claiming every route (=path between two neighboring cities) depending on its length:
1 carriage - 1 point
2 carriages - 2 points
3 carriages - 4 points
4 carriages - 7 points
6 carriages - 15 points
8 carriages - 21 points
Our goal is to create a system to count these scores automatically.
To test algorithm, we'll use a different set of images (the same map, the same angle of view).