diff --git a/src/Console/main.js b/src/Console/main.js index 11ef6ee..f057c77 100755 --- a/src/Console/main.js +++ b/src/Console/main.js @@ -26,14 +26,14 @@ console.group('Deck'); let deck = new Deck([0,1,2,3],3); console.log("deck.outputCards",deck.outputCards) console.log("deck.outputCards length",deck.outputCards.length) -console.log("deck.remainingCards",deck.remainingCards) +//console.log("deck.remainingCards",deck.remainingCards) console.log("deck.remainingCards length",deck.remainingCards.length) console.log("check set"); deck.checkSet([deck.outputCards[0],deck.outputCards[1],deck.outputCards[2]]) console.log("deck.outputCards",deck.outputCards) console.log("deck.outputCards length",deck.outputCards.length) -console.log("deck.remainingCards",deck.remainingCards) +//console.log("deck.remainingCards",deck.remainingCards) console.log("deck.remainingCards length",deck.remainingCards.length) console.groupEnd(); diff --git a/src/Model/Deck.js b/src/Model/Deck.js index 107a2ed..07aedc6 100755 --- a/src/Model/Deck.js +++ b/src/Model/Deck.js @@ -27,7 +27,7 @@ class Deck { * @brief creation of the deck : 12 random cards lay in front of the playe and remove card from the remainingCard array * @author Bastien Jacquelin */ - createDeck(nbCards) {//toTest⌛ + createDeck(nbCards) {//toTest⌛when more than 12c to d't add other cards if (this.remainingCards.length < this.nbCards) {// no more cards console.log("PLUS DE CARTES"); return; diff --git a/views/game.html b/views/game.html new file mode 100644 index 0000000..f692682 --- /dev/null +++ b/views/game.html @@ -0,0 +1,51 @@ + + + + +
+ +