Skip to content

CarsonV8824/KC-Ticket-To-Ride

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KC-Ticket-To-Ride

A web-based version of the Ticket to Ride board game, set in Kansas City. Play with friends, claim routes, and compete for the highest score!

Features

  • 🎲 Supports 2-5 players
  • 🗺️ Interactive Kansas City map with clickable routes
  • 🚂 Train cards and route claiming mechanics
  • 🏆 Score tracking and game-over screen
  • 💾 Persistent game state using SQLite
  • 🔄 Real-time updates with Flask backend and JavaScript frontend
  • 📝 Destination tickets per player (Currently being worked on)
  • 🃏 Draw train cards
  • 🖥️ Responsive UI for desktop browsers

Getting Started

Prerequisites

  • Python 3.8+
  • pip

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/KC-Ticket-To-Ride.git
    cd KC-Ticket-To-Ride
  2. Install dependencies:

    pip install flask
  3. Run the server:

    python src/main.py
  4. Open your browser and go to http://localhost:5000

Usage

  • Set the number of players (2-5) on the start screen.
  • Each player takes turns drawing cards or claiming routes.
  • Complete destination tickets for bonus points.
  • The game ends when a player has 2 or fewer trains left.
  • View final scores on the game-over screen.

Project Structure

src/
  main.py
  database/
    database.py
    data.sqlite3
  static/
    js/
      game.js
      player.js
      graphStruct.js
    css/
      styles.css
  templates/
    index.html
    playerCount.html
    about.html
    final.html
tests/
  test_database.py
  test_sending_data.py

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Credits

About

Based off of Ticket to Ride

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published