Method: Monotony::Player#sets_owned

Defined in:
lib/monotony/player.rb

#sets_ownedInteger

Returns the number of property sets owned by this player.

Returns:

  • (Integer)

    the number of property sets owned by this player.



45
46
47
# File 'lib/monotony/player.rb', line 45

def sets_owned
	@properties.select { |p| p.is_a? BasicProperty }.select(&:set_owned?).group_by { |p| p.set }.keys
end