Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Ticket to Ride Route Generator in Python - Episode 1

Let's Code Physics via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the creation of a Python-based route generator for the board game Ticket to Ride in this coding tutorial video. Learn how to add variety to gameplay by randomly selecting city pairs and assigning points based on distance. Follow along as the instructor develops a program that generates new ticket cards, potentially increasing the game's difficulty. Discover techniques for working with city lists, implementing player input, looping, applying physics concepts to calculate distances, and testing the generated routes. Gain insights into using VPython for code creation and find links to access the full source code and a standalone Windows executable.

Syllabus

Introduction
List of Cities
Number of Players
Player Name
Looping
Physics
Distance
Generating Routes
Testing

Taught by

Let's Code Physics

Reviews

Start your review of Ticket to Ride Route Generator in Python - Episode 1

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.