Bingo if all are same
This commit is contained in:
@@ -94,6 +94,10 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
generateColors: function(event, time) {
|
generateColors: function(event, time) {
|
||||||
if (time == 5) {
|
if (time == 5) {
|
||||||
|
if (new Set(this.colors).size == 1) {
|
||||||
|
alert('BINGO')
|
||||||
|
}
|
||||||
|
|
||||||
if (window.location.hostname == "localhost") {
|
if (window.location.hostname == "localhost") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user