Number Solitaire is the last but one exercise in Codility's lessons. The aim is to find the maximum score that can be achieved in a game with squares, a pebble and a dice. An array defines numbers on the squares and a dice is thrown to move the pebble along the squares. When a square is landed on, the number on that square is added to the score. When the player lands on the final square, the score is recorded.
This video shows my solution to Number solitaire. The solution scores 100%.