Skip to content

jhmccoy9/TicketToWin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ticket to Win

This repo is a small personal project written in python that is designed to help you win at the classic board game, Ticket to Ride.

Requirements

  1. numpy
  2. networkx

Usage

After installing necessary dependencies, simply tweak the example in main.py to generate the shortest path that hits all the cities you wish to connect. This is the most common use-case. If you want, you can also explore color_graph.py to see some additional features and functions.

Limitations

Due to time constraints, this project is not very adaptable. Example: let's saying you are playing Ticket to Ride and visit 5 cities. You put those five cities into the generatePaths function and, after a few moves, connect them all. Then, you pick up a new ticket and decide to add on a sixth city. If you simply add it to the list and rerun the code, it will give you the optimal path for connecting all six cities from the start. It will not take into the consideration the progress you've already made. This adaptability would be a fairly easy fix but I haven't added it.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages