Giter VIP home page Giter VIP logo

ttrdc's Introduction

TTRDC - Ticket To Ride: District of Columbia

Custom Ticket To Ride map for the District of Columbia. This repository includes the .png file for this custom map, as well as some basic python functions and scripts to generate the routes and associated point values that you can use to make route cards.


The Map

TTRDC Map


Map Data

stations.csv is a CSV file that lists all of the stations present on the map.

routes.csv is a CSV file that lists all of the routes present on the map, as well as the distance (in number of trains) of each route.

routes_new.csv is a CSV file providing an example of 100 randomly generated unique routes with a starting city, ending city, and associated point value (based on the minimum distance between the two cities) on each row.


The Python

The package requirements for the Python scripts and functions in this repository can be installed using pip with the following command:

pip install -r requirements.txt

The ttrdc_functions.py file contains functions for loading the station and route information that is depicted on the map, as well as functions to generate a network graph, and define unique routes from that graph.

make_route_cards.py is a Python script that can be run to generate a random set of 100 unique routes and associated point values that is written out to the file routes_new.csv.

route_analysis.ipynb is a Jupyter notebook that shows a bit of rudimentary analysis of the overall map network as a graph, which could be further expanded to offer insights about the most 'valuable' routes and locations on the board. It also includes some basic route generation and analysis of the generated routes (unique starting and ending cities, point values, etc.)


Disclaimer

This is a fan-made project and is not affiliated with Days of Wonder or Ticket To Ride in any way. It is my understanding that Days of Wonder does support and encourage fan-made maps and content, as long as it is not used for commercial purposes, see their page on fan contributions.

ttrdc's People

Contributors

elbeejay avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.