Commit ee4a3340 authored by cc201010's avatar cc201010
Browse files

Advanced Js project ,Updated 2nd Version

parent 35137ff9
......@@ -114,15 +114,6 @@ export default {
return value
},
dealCard() {
// let index;
// do{
// index = Math.floor(Math.random() * 52);
// }while (this.cardSwitch[index]){
// const card = this.deck[index];
// this.cardSwitch[index] = true;
// return card;
// }
let index;
index = Math.floor(Math.random() * 52);
const card = this.deck[index];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment