basketball 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/basketball/org/team.rb +1 -4
- data/lib/basketball/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a6709626d10c4b4c46fce577ec25ea57f28f89a12a40799bd625666d9c6a3b5
|
4
|
+
data.tar.gz: ac30e12cb15484913ba3b58c0e96f130575a08111d572b87b77e490727c7a528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2fd8e0024222767369b33abf749ba8b41d6320d181bc6e20144007bf1a6aedf6d67f42f0d6ce29fd995387b9540eed9c8c8ec6232809a35c56099389b33cada
|
7
|
+
data.tar.gz: de054db63b667f81a118b2e917894bdb7667bc64801959529c74b9da2d19afc78889a3efa8ee95f68d098880fc82f449fd661a33f2eca668bcfe656b839a40ef
|
data/README.md
CHANGED
@@ -12,6 +12,7 @@ Element | Description
|
|
12
12
|
:------------ | :-----------
|
13
13
|
**Arena** | Determines exhibition and regular season game outcomes.
|
14
14
|
**Assessment** | When the Room needs to know who a Front Office wants to select, the Room will send the Front Office an Assessment. The Assessment is a report of where the team currently stands: players picked, players available, and round information.
|
15
|
+
**Available Player** | Represents a player in the context of a draft.
|
15
16
|
**Calendar** | Stores important boundary dates (exhibition start, exhibition end, season start, and season end).
|
16
17
|
**Conference** | A collection of Divisions.
|
17
18
|
**Coordinator** | Object which can take a League, Calendar, Games, and an Arena and provide an iterable interface to enumerate through days and simulate games as results.
|
data/lib/basketball/org/team.rb
CHANGED
@@ -43,10 +43,7 @@ module Basketball
|
|
43
43
|
def sign!(player)
|
44
44
|
raise ArgumentError, 'player is required' unless player
|
45
45
|
raise PlayerAlreadySignedError, "#{player} already signed by #{self}" if signed?(player)
|
46
|
-
|
47
|
-
if (players.length + 1) >= MAX_PLAYER_COUNT
|
48
|
-
raise MaxPlayerCountError, "max player count reached: #{MAX_PLAYER_COUNT}"
|
49
|
-
end
|
46
|
+
raise MaxPlayerCountError, "max reached: #{MAX_PLAYER_COUNT}" if players.length >= MAX_PLAYER_COUNT
|
50
47
|
|
51
48
|
players << player
|
52
49
|
|
data/lib/basketball/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basketball
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Ruggio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: " This library is meant to serve as the domain for a basketball league/season
|
14
14
|
simulator/turn-based game. It models core ideas such as: players, general managers,
|