Class: SeedList::Strategy::Amateur

Inherits:
Base
  • Object
show all
Defined in:
lib/seed_list/strategy.rb

Overview

Matched by similar skill straight through; best on the top, worst on the bottom. Optimized for friendly tournaments with diversely skilled players (to prevent casual players from being knocked out right away).

Instance Attribute Summary

Attributes inherited from Base

#players

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from SeedList::Strategy::Base

Instance Method Details

#seedObject



54
55
56
# File 'lib/seed_list/strategy.rb', line 54

def seed
  @players.sort { |a,b| a.seed <=> b.seed }
end