Skip to content

Bernheart/bridge_game_package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bridge Package

Bridge is a Dart package designed to help developers manage and calculate the logic behind the classic card game Bridge. It includes functionality for representing contracts, calculating scores, managing game records, handling vulnerability rules, and more. This package can be easily integrated into any Dart or Flutter project that involves Bridge game logic.

Features

  • Game Records: Keeps track of game records, including contract details, tricks taken, and scores.
  • Contract Calculation: Computes scores based on contract type (e.g., doubled, redoubled), suit, and tricks taken.
  • Vulnerability Rules: Implements vulnerability rules based on the board number and declarer position.
  • Score Calculation: Includes functions for scoring, including the calculation of IMPs (International Match Points) for competitive bridge games.
  • Flexible Game Types: Supports both single-table and match-style games, making it versatile for different formats.

Getting Started

To get started with the bridge package, you need to add it to your pubspec.yaml file:

dependencies:
  bridge_game: ^1.1.38

About

bridge package for flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages