Bingo if all are same

This commit is contained in:
2020-01-23 13:43:38 +01:00
parent 8710881d51
commit 11a35ccb90

View File

@@ -94,6 +94,10 @@ export default {
methods: {
generateColors: function(event, time) {
if (time == 5) {
if (new Set(this.colors).size == 1) {
alert('BINGO')
}
if (window.location.hostname == "localhost") {
return;
}