|
|
@ -9,7 +9,7 @@ export default{
|
|
|
|
return{
|
|
|
|
return{
|
|
|
|
card:new Card({"filling":"empty"}),
|
|
|
|
card:new Card({"filling":"empty"}),
|
|
|
|
id:0,
|
|
|
|
id:0,
|
|
|
|
deck : new Deck([0,1,2,3],4),
|
|
|
|
deck : new Deck([0,1,2],3),
|
|
|
|
selectedCards:[],
|
|
|
|
selectedCards:[],
|
|
|
|
selectedCardsindex:[],
|
|
|
|
selectedCardsindex:[],
|
|
|
|
nbCardsSelected:0,
|
|
|
|
nbCardsSelected:0,
|
|
|
@ -65,7 +65,7 @@ export default{
|
|
|
|
<h2>Players: {{connected}}</h2>
|
|
|
|
<h2>Players: {{connected}}</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="!win" v-bind:style="{border: '3px solid black', fontSize: '20px', display:'flex', 'flex-wrap':'wrap',margin:'1rem 20rem 20px 20px'}">
|
|
|
|
<div v-if="!win" v-bind:style="{border: '3px solid black', fontSize: '20px', display:'flex', 'flex-wrap':'wrap',margin:'1rem 17vw 20px 17vw'}">
|
|
|
|
<card-module @selected='selected' :id=n :card=this.deck.outputCards[n-1] v-for="n in deck.outputCards.length"/>
|
|
|
|
<card-module @selected='selected' :id=n :card=this.deck.outputCards[n-1] v-for="n in deck.outputCards.length"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="win">
|
|
|
|
<div v-if="win">
|
|
|
|