-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequirements.txt
More file actions
36 lines (29 loc) · 891 Bytes
/
Copy pathrequirements.txt
File metadata and controls
36 lines (29 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
1. Support two players
+ red and blue links
+ red and blue routes
2. Route changes
+ red routes can use red and uncolored links
+ blue routes can use blue and uncolored links
+ uncolored routes can only use uncolored links
3. Handle improper input
+ output line with an error
+ too many tokens
+ too few tokens
+ player colors other than red or blue
+ invalid distance
4. Add Unit tests for any new classes
Bonus:
Learn about Factory pattern
Implement factory pattern for links
Add a factory
+ Builds links given the input
+ Allows easy addition of new links
+ Separate link and factory classes
Extensions designed 10% (UML diagram)
Extensions implemented 20%
Extensions tested 20%
Refactorings described (4) 10%
Refactorings implemented (2) 10%
Code Clarity 10%
Document Clarity 10%
Factory 10% Bonus