Skip to main content

Command Palette

Search for a command to run...

Ticket to Ride

Updated
1 min read
Ticket to Ride
B

I like programming (at work) and learning for fun. You'll often find me cooking and working on my house in my spare time.

The perimeter of the board for the game Ticket to Ride has numbered spaces for score keeping. When a player earns points, they advance their token along the perimeter. Say I was on space 30 and scored 5 points. I would move my token "1, 2, 3, 4, 5" to space 35.

Ticket to ride game board

One day, I realized that since these spaces were numbered, unlike other board games, I could add instead of having to count the offset. And that, dear reader, is indexing. I don't have to inspect each space in my offset, I can advance directly to the final position.

Ticket to Ride