Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cc201010
VueProject
Commits
ee4a3340
Commit
ee4a3340
authored
Feb 06, 2022
by
cc201010
Browse files
Advanced Js project ,Updated 2nd Version
parent
35137ff9
Changes
1
Hide whitespace changes
Inline
Side-by-side
poke-app/src/pages/BlackJack.vue
View file @
ee4a3340
...
...
@@ -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
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment