Skip to content

Commit

Permalink
Create RulesFactory.java
Browse files Browse the repository at this point in the history
  • Loading branch information
RonaZong committed Oct 22, 2020
1 parent 8aff643 commit 915195c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 1DV607/src/BlackJack/Model/rules/RulesFactory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package BlackJack.Model.rules;

public class RulesFactory {
public IHitStrategy GetHitRule() {
return new BasicHitStrategy();
}

public INewGameStrategy GetNewGameRule() {
return new AmericanNewGameStrategy();
}
}

0 comments on commit 915195c

Please sign in to comment.