diff --git a/client/index.html b/client/index.html index d702e50..857148c 100644 --- a/client/index.html +++ b/client/index.html @@ -2,7 +2,7 @@ - Cliente UNO + Node UNO diff --git a/src/App.ts b/src/App.ts index 4596980..ec92424 100644 --- a/src/App.ts +++ b/src/App.ts @@ -4,7 +4,7 @@ import { Card } from './components/Card' import * as express from 'express' import * as socketIo from 'socket.io' import * as path from 'path' -import { Result } from 'range-parser'; +//import { Result } from 'range-parser'; class App { // Variables publicas @@ -95,7 +95,7 @@ class App { let randomCards: Array = [] for (let i = 0; i < cardsToDeal; i++){ if (this.cards.length == 0){ - this.cards == this.usedCards; + this.fillDeck(); } // Va a elegir un numero aleatorio de 0 a la cantidad de cartas que esten en el maso randomCardIndex = Math.floor(Math.random()*this.cards.length) diff --git a/src/components/Game.ts b/src/components/Game.ts index 58f99d0..ffc02bd 100644 --- a/src/components/Game.ts +++ b/src/components/Game.ts @@ -4,5 +4,5 @@ export class Game { gameCode: string; players: Array; topCard: Card; - turn: number; + turn: number } \ No newline at end of file