Skip to content

Commit

Permalink
Add Rails and Sails map (#27)
Browse files Browse the repository at this point in the history
* Add RaS map cities

* Add around 1/3 of RaS map routes

* Add all Eurasia routes

* Add scores for routes 7 and 8 tiles long

* Add Greenland

* Add Africa routes

* Add Australia

* Add South America

* Replace Mexico by Caracas

* Add NA routes
  • Loading branch information
yury-fedotov authored Jun 12, 2024
1 parent 6e85710 commit 734f638
Show file tree
Hide file tree
Showing 7 changed files with 550 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/ticket_to_ride/default_components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
"""Provides default component definitions for common game versions."""
from .europe import *
from .north_america import *
from .rails_and_sails import *
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This project is implemented exclusively for learning purposes and assumes no commercial use.
# Neither Yury Fedotov nor organizations he is affiliated with claim any rights to the "Ticket to Ride" trademark,
# game rules or other game-related artifacts. "Ticket to Ride" was designed by Alan R. Moon and released
# by Days of Wonder. To the best of author's knowledge, the trademark is owned by Days of Wonder, Inc.
# All rights to the original game and its elements are owned by their respective holders.
# For more information about the game, please visit
# the official Days of Wonder website: https://www.daysofwonder.com/ticket-to-ride/.
"""Provides default component definitions for the worldwide Rails & Sails game version."""
from .map import rails_and_sails_map
65 changes: 65 additions & 0 deletions src/ticket_to_ride/default_components/rails_and_sails/cities.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# This project is implemented exclusively for learning purposes and assumes no commercial use.
# Neither Yury Fedotov nor organizations he is affiliated with claim any rights to the "Ticket to Ride" trademark,
# game rules or other game-related artifacts. "Ticket to Ride" was designed by Alan R. Moon and released
# by Days of Wonder. To the best of author's knowledge, the trademark is owned by Days of Wonder, Inc.
# All rights to the original game and its elements are owned by their respective holders.
# For more information about the game, please visit
# the official Days of Wonder website: https://www.daysofwonder.com/ticket-to-ride/.
"""Default cities for the worldwide Rails & Sails game version."""
from ticket_to_ride import City

_CITY_NAMES = frozenset((
"Reykjavik",
"Murmansk",
"Tiksi",
"Yakutsk",
"Petropavlovsk",
"Tokyo",
"Beijing",
"Hong Kong",
"Manila",
"Honolulu",
"Bangkok",
"Mumbai",
"Labore",
"Novosibirsk",
"Moskva",
"Hamburg",
"Marseille",
"Casablanca",
"Edinburgh",
"Athina",
"Al-Zabira",
"Djubouti",
"Dar Es Salaam",
"Toamasina",
"Cape Town",
"Luanda",
"Lagos",
"North Pole",
"Tehran",
"Jakarta",
"Darwin",
"Perth",
"Sydney",
"Post Moresby",
"Rio de Janeiro",
"Buenos Aires",
"Lima",
"Valparaiso",
"Caracas",
"Miami",
"Mexico",
"Los Angeles",
"New York",
"Winnipeg",
"Cambridge Bay",
"Anchorage",
"Christchurch",
"Vancouver",
))

default_cities = {
name: City(name=name)
for name in _CITY_NAMES
}
13 changes: 13 additions & 0 deletions src/ticket_to_ride/default_components/rails_and_sails/map.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This project is implemented exclusively for learning purposes and assumes no commercial use.
# Neither Yury Fedotov nor organizations he is affiliated with claim any rights to the "Ticket to Ride" trademark,
# game rules or other game-related artifacts. "Ticket to Ride" was designed by Alan R. Moon and released
# by Days of Wonder. To the best of author's knowledge, the trademark is owned by Days of Wonder, Inc.
# All rights to the original game and its elements are owned by their respective holders.
# For more information about the game, please visit
# the official Days of Wonder website: https://www.daysofwonder.com/ticket-to-ride/.
"""Exposes the worldwide Rails & Sails game version map."""
from ticket_to_ride import Map

from .routes import default_routes

rails_and_sails_map = Map(routes=default_routes, name="Rails and Sails World")
Loading

0 comments on commit 734f638

Please sign in to comment.