0
I Use This!
Activity Not Available

Project Summary

IntroductionThis project is designed for generating tables for doubles games of badminton.

Sample CodeHere's an example of how things work:

// It's the start of a new season
final Season season = new Season();
// It's the first round
final Round round = new Round();
season.addRound(round);

// Create players
final Player playerA = Player.forName("A");
final Player playerB = Player.forName("B");
final Player playerC = Player.forName("C");
final Player playerD = Player.forName("D");

// Create teams
final Team home = new Team(playerA, playerB);
final Team away = new Team(playerC, playerD);

// Record the result
round.addResult(new Result(home, away, 21, 19));

// Decide how we're going to allocate points
final ScoringStrategy scoring = new BonusPointsStrategy();
final Comparator sorting = new RowPointsComparator();
// Generate the table
final Table table = new Table(season.getResults(), scoring, sorting);
System.out.println(table);produces the following (with some formatting):

PlayerPWLPts A1103 B1103 C1011 D1011

If we change the scoring strategy:

final ScoringStrategy scoring = new LegacyStrategy();we get the following:

PlayerPWLPts A1103 B1103 C1010 D1010

Tags

No tags have been added

In a Nutshell, cardiff-badminton...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

GNU General Public License v3.0 or later
Permitted

Place Warranty

Use Patent Claims

Commercial Use

Modify

Distribute

Forbidden

Sub-License

Hold Liable

Required

Distribute Original

Disclose Source

Include Copyright

State Changes

Include License

Include Install Instructions

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    by exploring contributors within projects, you can view details on every commit they have made to that project
  • ...
    nearly 1 in 3 companies have no process for identifying, tracking, or remediating known open source vulnerabilities
  • ...
    search using multiple tags to find exactly what you need

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis