Skip to content

Commit

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


import BlackJack.Model.Card;
import BlackJack.Model.Dealer;
import BlackJack.Model.Deck;
import BlackJack.Model.Player;

class InternationalNewGameStrategy implements INewGameStrategy{
public boolean NewGame(Deck a_deck, Dealer a_dealer, Player a_player) {
Card c;

c = a_deck.GetCard();
c.Show(true);
a_player.DealCard(c);

c = a_deck.GetCard();
c.Show(true);
a_dealer.DealCard(c);

c = a_deck.GetCard();
c.Show(true);
a_player.DealCard(c);

return true;
}
}

0 comments on commit 1d0573c

Please sign in to comment.