Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Płócieniak committed Jan 11, 2018
1 parent ea9d402 commit 128fdb1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.7",
"description": "Thousand Card Game Logic",
"scripts": {
"prepublish2": "rm -rf dist && tsc",
"build": "rm -rf dist && tsc",
"start": "rm -rf dist && tsc && node dist/main.js",
"test": "karma start"
},
Expand Down
2 changes: 1 addition & 1 deletion src/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as _ from 'lodash';
import { Game, Card, Suit, Rank, Player, Phase, Thousand, CardPattern, SchuffleCardsFunction } from './game.interfaces';
import { registerPlayer, setDeck, dealCardToPlayer, dealCardToStock, bid, setPhase, ASSIGN_STOCK, assignStock, shareStock, initializeBattle, calculateBattleResult, increaseBid } from './game.actions';
import { game as gameReducer } from './game.reducer';
import { createDeck, getMarriages, createShuffledDeck } from './helpers/cards.helpers';
import { createDeck, getMarriages } from './helpers/cards.helpers';
import { isRegisteringPlayersPhaseFinished } from './validators/player.validator';
import { isBattleFinished, isTrickFinished } from './validators/battle.validator';
import { getNextTurn, getWinner, getNextBiddingTurn } from './helpers/players.helpers';
Expand Down
6 changes: 0 additions & 6 deletions src/helpers/cards.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ export function createDeck(): CardPattern[] {
];
}

export function createShuffledDeck(): CardPattern[] {
return _.chain(createDeck())
.shuffle()
.value();
}

export function getCard(cards: CardPattern[], card: CardPattern): CardPattern {
return _.find(cards, _card => _card === card);
}
Expand Down

0 comments on commit 128fdb1

Please sign in to comment.