Designed by Tracy Khawand

Events

Your student bar

Located at the 2nd floor of Concordia's Hall building.

Trivia Tuesday

Trivia Tuesdays

Thirsty Thursday

Thirsty Thursdays

Send Us a Booking Request

Our events manager is available in person every Tuesday from 12pm to 5pm!

Minigame Monday: Connections

Find four groups of four words.

Congratulations!

DM us a screenshot of your result to @reggiesmtl. If you’re one of the first 3 people to solve it, we’ll reply with details on how to claim your prize :)

Open Instagram
(() => { const groups = [ { title: "Common expressions ending in CHECK", words: ["COAT", "ID", "SOUND", "VIBE"], explanation: "Coat check, ID check, soundcheck and vibe check.", color: "#ffd28d" }, { title: "Words before DROP", words: ["BEAT", "LEMON", "MERCH", "TEAR"], explanation: "Beat drop, lemon drop, merch drop", link: "https://devilsadvocate.ca/", color: "#bbd6a5" }, { title: "What a shot can be", words: ["ATTEMPT", "ESPRESSO", "PHOTO", "TEQUILA"], explanation: "Shoot your shot, a shot of espresso, a pic in our photobooth or a classic shot of tequila.", color: "#b9d4ea" }, { title: "Makes a new word when read backward", words: ["DRAWER", "STRESSED", "TAB", "TIPS"], explanation: "DRAWER → REWARD, STRESSED → DESSERTS, TAB → BAT and TIPS → SPIT.", color: "#e8b9d3" } ]; const startingOrder = [ "TEQUILA", "LEMON", "DRAWER", "ID", "STRESSED", "TEAR", "ESPRESSO", "VIBE", "COAT", "PHOTO", "TAB", "MERCH", "BEAT", "TIPS", "SOUND", "ATTEMPT" ]; function mount(root) { if (root.dataset.rgReady === "true") return; root.dataset.rgReady = "true"; const board = root.querySelector(".rg-board"); const solved = root.querySelector(".rg-solved"); const attempts = root.querySelector(".rg-attempts"); const status = root.querySelector(".rg-status"); const prize = root.querySelector(".rg-prize"); const finishTime = root.querySelector(".rg-finish-time"); const confetti = root.querySelector(".rg-confetti"); const shuffleButton = root.querySelector('[data-action="shuffle"]'); const clearButton = root.querySelector('[data-action="clear"]'); const submitButton = root.querySelector('[data-action="submit"]'); const replayButton = root.querySelector('[data-action="replay"]'); const closeButton = root.querySelector('[data-action="close"]'); const tiles = new Map(); const selected = new Set(); const guesses = new Set(); const found = new Set(); const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)"); let remaining = []; let misses = 4; let finished = false; let startedAt; let confettiTimer; for (const word of startingOrder) { const button = document.createElement("button"); button.type = "button"; button.className = "rg-tile"; button.textContent = word; button.addEventListener("click", () => selectWord(word)); tiles.set(word, button); } function selectWord(word) { if (finished) return; if (selected.has(word)) { selected.delete(word); } else if (selected.size < 4) { selected.add(word); } else { status.textContent = "Deselect a word before choosing another."; return; } status.textContent = ""; updateControls(); } function updateControls() { for (const [word, button] of tiles) { button.setAttribute("aria-pressed", String(selected.has(word))); } clearButton.disabled = selected.size === 0; submitButton.disabled = selected.size !== 4; shuffleButton.hidden = finished; clearButton.hidden = finished; submitButton.hidden = finished; replayButton.hidden = !finished || found.size !== groups.length; attempts.hidden = finished; attempts.textContent = `Mistakes remaining: ${misses}`; } function renderBoard() { board.replaceChildren(...remaining.map(word => tiles.get(word))); board.hidden = remaining.length === 0; updateControls(); } function showGroup(group, result, delay = 0) { const card = document.createElement("div"); card.className = "rg-card"; card.dataset.result = result; card.style.setProperty("--rg-card-color", group.color); card.style.setProperty("--rg-delay", `${delay}ms`); const title = document.createElement("strong"); title.textContent = group.title; const words = document.createElement("div"); words.textContent = group.words.join(" · "); const explanation = document.createElement("p"); explanation.textContent = group.explanation; if (group.link) { const link = document.createElement("a"); link.href = group.link; link.textContent = "devilsadvocate.ca"; link.target = "_blank"; link.rel = "noopener noreferrer"; explanation.append(" (", link, ") and teardrop."); } card.append(title, words, explanation); solved.append(card); } function formatDuration(elapsedMs) { const totalSeconds = Math.max(1, Math.floor(elapsedMs / 1000)); const minutes = Math.floor(totalSeconds / 60); const seconds = totalSeconds % 60; if (minutes === 0) return `${seconds} sec`; return `${minutes} min ${String(seconds).padStart(2, "0")} sec`; } function stopConfetti() { window.clearTimeout(confettiTimer); confetti.replaceChildren(); } function celebrate() { if (reducedMotion.matches) return; const colors = ["#ffac8f", "#ffd28d", "#bbd6a5", "#b9d4ea", "#e8b9d3"]; const pieces = document.createDocumentFragment(); const fall = confetti.clientHeight + 28; for (let i = 0; i < 44; i += 1) { const piece = document.createElement("i"); piece.style.setProperty("--rg-x", `${Math.random() * 100}%`); piece.style.setProperty("--rg-paper", colors[i % colors.length]); piece.style.setProperty("--rg-duration", `${850 + Math.random() * 750}ms`); piece.style.setProperty("--rg-delay", `${Math.random() * 280}ms`); piece.style.setProperty("--rg-drift", `${Math.random() * 100 - 50}px`); piece.style.setProperty("--rg-fall", `${fall}px`); pieces.append(piece); } confetti.replaceChildren(pieces); confettiTimer = window.setTimeout(stopConfetti, 2000); } function finish(won) { const duration = formatDuration(performance.now() - startedAt); finished = true; selected.clear(); remaining = []; renderBoard(); if (won) { replayButton.focus(); status.textContent = `You solved all four groups in ${duration}.`; finishTime.textContent = `You solved Minigame Monday in ${duration}.`; prize.showModal(); celebrate(); } else { status.textContent = `Out of guesses. Refresh the page to try again.`; } } function submit() { if (finished || selected.size !== 4) return; const signature = [...selected].sort().join("|"); if (guesses.has(signature)) { status.textContent = "You already tried those four."; return; } guesses.add(signature); const openGroups = groups.filter(group => !found.has(group)); const match = openGroups.find(group => group.words.every(word => selected.has(word)) ); if (match) { found.add(match); remaining = remaining.filter(word => !selected.has(word)); selected.clear(); showGroup(match, "found"); if (found.size === groups.length) { finish(true); } else { renderBoard(); status.textContent = `Group found. ${match.title}.`; tiles.get(remaining[0]).focus(); } return; } const oneAway = openGroups.some(group => group.words.filter(word => selected.has(word)).length === 3 ); misses -= 1; if (misses === 0) { finish(false); } else { updateControls(); const hint = oneAway ? "One away!" : "Try another combination."; const count = misses === 1 ? "mistake" : "mistakes"; status.textContent = `${hint} ${misses} ${count} remaining.`; } } function reset() { stopConfetti(); finished = false; misses = 4; remaining = [...startingOrder]; selected.clear(); guesses.clear(); found.clear(); solved.replaceChildren(); status.textContent = ""; renderBoard(); startedAt = performance.now(); } submitButton.addEventListener("click", submit); clearButton.addEventListener("click", () => { selected.clear(); updateControls(); status.textContent = "Selection cleared."; tiles.get(remaining[0]).focus(); }); shuffleButton.addEventListener("click", () => { for (let i = remaining.length - 1; i > 0; i -= 1) { const j = Math.floor(Math.random() * (i + 1)); [remaining[i], remaining[j]] = [remaining[j], remaining[i]]; } renderBoard(); status.textContent = "Tiles shuffled."; }); replayButton.addEventListener("click", () => { reset(); tiles.get(remaining[0]).focus(); }); closeButton.addEventListener("click", () => prize.close()); prize.addEventListener("close", stopConfetti); reset(); } function initialize() { document.querySelectorAll("[data-reggies-game]").forEach(mount); } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", initialize, { once: true }); } else { initialize(); } })();

Designed by Tracy Khawand