ModsCode / Claude Code Mods / Ranking / bingo
bingo
Classic 75-ball bingo, you against Claude. Numbers are called, you mark your card and shout Bingo first; Claude plays a card of its own and claims one call late, so you get a fair window. Zero tokens.
What it does
- Draws a pane, toasts
- Adds /bingo
- Hooks classic.SessionStart, session.start, ui.close
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Handles errors
Code to start from
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like bingo by Mohammed Mubarak (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/mdmubarak786-bingo/
// Written by ModsCode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Bingo" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const length = '…'
const callLabel = '…'
const recent = '…'
const text = '…'
const speed = '…'
const wins = '…'
const losses = '…'
return (
<Box flexDirection="column" rowGap={1}>
<Box flexDirection="column">
<Box flexDirection="row" columnGap={2} flexWrap="wrap">
<Text bold>
BINGO
</Text>
<Text dimColor>
you vs Claude
</Text>
<Text>
{`called ${length}/75`}
</Text>
<Text bold color="inverseText" backgroundColor="claude">
{` last ${callLabel} `}
</Text>
</Box>
<Text dimColor wrap="truncate">
{`recent: ${recent}`}
</Text>
<Text wrap="wrap">
{text}
</Text>
</Box>
<Box flexDirection="row" columnGap={4}>
<Box flexDirection="column">
<Text bold color="success">
Your card
</Text>
<Box flexDirection="row" columnGap={1}>
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
</Box>
</Box>
<Box flexDirection="column">
<Text bold color="claude">
Claude's card
</Text>
<Box flexDirection="row" columnGap={1}>
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
<Box width={4} justifyContent="flex-end" />
</Box>
</Box>
</Box>
<Box flexDirection="row" columnGap={2} flexWrap="wrap">
<Text backgroundColor="warning">
{" 12 "}
</Text>
<Text dimColor>
called, mark it
</Text>
<Text backgroundColor="success">
{" 12 "}
</Text>
<Text dimColor>
marked
</Text>
<Text backgroundColor="suggestion">
{" 12 "}
</Text>
<Text dimColor>
a full line
</Text>
<Text dimColor>
12
</Text>
<Text dimColor>
not called
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="suggestion" paddingX={1}>
<Text bold>
How to play
</Text>
<Text wrap="wrap">
{`1. Press c to call a number, or a to call one every ${speed} seconds.`}
</Text>
<Text wrap="wrap">
2. A called number on your card lights up yellow: Tab or click it, then Enter to mark it.
</Text>
<Text wrap="wrap">
3. Five in a row, column, or diagonal (FREE counts): press b. Claude claims one call late, so shout first.
</Text>
<Text dimColor wrap="wrap">
Keys need the pane focused: click it if nothing happens. h hides this.
</Text>
</Box>
<Box flexDirection="row" columnGap={3} flexWrap="wrap">
<Button label="Call" hotkey="c" plain />
<Button label="Auto on" hotkey="a" plain />
<Button label="Bingo!" hotkey="b" plain />
<Button label="New game" hotkey="n" plain />
<Button label="Hide help" hotkey="h" plain dimColor />
<Text dimColor>
{`Esc closes · you ${wins} · Claude ${losses}`}
</Text>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const winningLine = '…'
await $.ui.toast(`The game is over. Press n for a new game.`)
await $.ui.toast(`Claude: BINGO! ${winningLine}. New game: n`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
mods/bingo/hooks/register.ts lines 203–347 · Pane
on('ui.render', { component: 'Pane' }, async ($, e, next) => {
if (e.requestId !== PANE) return next(e)
const g = await read($, game)
const { Box, Text, Button } = $.ui.resolve(e)
if (!g.you.length) return Text({ children: ['No game loaded. /bingo new starts one.'] })
const columns = e.props.bodyColumns || 60
const wide = columns >= 60
const lastNum = g.called.length ? g.called[g.called.length - 1] : 0
const recent = g.called.slice(-8).map(callLabel).join(' ')
// The how-to opens with a fresh game where there is room for it.
const showHelp = help ?? (wide && g.called.length === 0)
// Called numbers on your card you haven't marked: the thing to do next.
const toMark = g.you.map((n, pos) => (pos !== FREE && g.called.includes(n) && !g.yourMarks.includes(pos) ? n : 0)).filter(Boolean)
const yourLine = g.winner ? null : yourLines(g)[0] ?? null
const litYours = new Set(lineCells(g.winner === 'you' ? g.winningLine : yourLine))
const litClaude = new Set(lineCells(g.winner === 'claude' ? g.winningLine : g.claudeLine))
const status = g.winner === 'you' ? { text: 'BINGO! You won with ' + g.winningLine + '. Press n for a new game.', color: 'success', bold: true }
: g.winner === 'claude' ? { text: 'Claude won with ' + g.winningLine + '. Press n for a new game.', color: 'error', bold: true }
: yourLine ? { text: 'You have ' + yourLine + '! Press b to shout Bingo' + (g.claudeLine ? ' before the next call.' : '.'), color: 'success', bold: true }
: g.claudeLine ? { text: 'Claude has ' + g.claudeLine + ' and claims at the next call. Shout first: b', color: 'warning', bold: true }
: toMark.length ? { text: 'On your card: ' + toMark.map(callLabel).join(', ') + '. Tab or click the lit cell, then Enter to mark it.', color: 'warning' }
: g.called.length ? { text: 'Nothing new on your card. Press c for the next number.', dim: true }
: { text: 'Press c to call the first number.', color: 'suggestion' }
const header = Box({
flexDirection: 'column',
children: [
Box({ flexDirection: 'row', columnGap: 2, flexWrap: 'wrap', children: [
Text({ bold: true, children: ['BINGO'] }),
Text({ dimColor: true, children: ['you vs Claude'] }),
Text({ children: ['called ' + g.called.length + '/75'] }),
Text({ bold: true, color: 'inverseText', backgroundColor: 'claude', children: [lastNum ? ' last ' + callLabel(lastNum) + ' ' : ' no call yet '] }),
] }),
Text({ dimColor: true, wrap: 'truncate', children: [recent ? 'recent: ' + recent : 'recent: none'] }),
Text({ color: status.color, dimColor: status.dim, bold: status.bold, wrap: 'wrap', children: [status.text] }),
],
})
// Every cell is a fixed-width Box with its content at the right edge, so the
// columns line up on a surface that collapses spaces or draws a proportional
// font; nothing is aligned by padding. The center cell reads FREE, four wide.
const CELL = 4
const cell = (children, backgroundColor?: string) => Box({ width: CELL, justifyContent: 'flex-end', backgroundColor, children })
const letters = Box({ flexDirection: 'row', columnGap: 1, children: LETTERS.map((l) => cell([Text({ bold: true, children: [l] })])) })
const yourRows = [0, 1, 2, 3, 4].map((r) =>
Box({
flexDirection: 'row',
columnGap: 1,
children: [0, 1, 2, 3, 4].map((c) => {
const pos = r * 5 + c
const n = g.you[pos]
const marked = g.yourMarks.includes(pos)
const calledNum = pos === FREE || g.called.includes(n)
const label = pos === FREE ? 'FREE' : String(n)
// A completed line: the accent. Marked: green. Called and not yet marked:
// yellow, the cell to press. Not called: dim. The Button itself takes no
// color, so the Box behind it carries the state.
const backgroundColor = litYours.has(pos) ? 'suggestion' : marked ? 'success' : calledNum ? 'warning' : undefined
const button = Button({ key: 'cell-' + pos, label, plain: true, dimColor: !calledNum, onPress: async () => {
let error: string | undefined
await change($, (cur) => {
const r = toggleMark(cur, pos)
error = r.error
return r.game
})
if (error) $.ui.toast(error)
} })
return cell([button], backgroundColor)
}),
}),
)
const yourCard = Box({ flexDirection: 'column', children: [Text({ bold: true, color: 'success', children: ['Your card'] }), letters, ...yourRows] })
const claudeRows = [0, 1, 2, 3, 4].map((r) =>
Box({
flexDirection: 'row',
columnGap: 1,
children: [0, 1, 2, 3, 4].map((c) => {
const pos = r * 5 + c
const done = claudeMarked(g, pos)
const lit = litClaude.has(pos)
return cell([Text({ color: done ? 'inverseText' : undefined, dimColor: !done, bold: lit, children: [pos === FREE ? 'FREE' : String(g.claude[pos])] })], lit ? 'error' : done ? 'claude' : undefined)
}),
}),
)
const claudeCard = Box({ flexDirection: 'column', children: [Text({ bold: true, color: 'claude', children: ['Claude\'s card'] }), letters, ...claudeRows] })
const cards = wide ? Box({ flexDirection: 'row', columnGap: 4, children: [yourCard, claudeCard] }) : Box({ flexDirection: 'column', rowGap: 1, children: [yourCard, claudeCard] })
const legend = Box({ flexDirection: 'row', columnGap: 2, flexWrap: 'wrap', children: [
Text({ backgroundColor: 'warning', children: [' 12 '] }),
Text({ dimColor: true, children: [wide ? 'called, mark it' : 'mark it'] }),
Text({ backgroundColor: 'success', children: [' 12 '] }),
Text({ dimColor: true, children: ['marked'] }),
Text({ backgroundColor: 'suggestion', children: [' 12 '] }),
Text({ dimColor: true, children: [wide ? 'a full line' : 'line'] }),
Text({ dimColor: true, children: ['12'] }),
Text({ dimColor: true, children: ['not called'] }),
] })
const howTo = Box({ flexDirection: 'column', borderStyle: 'round', borderColor: 'suggestion', paddingX: 1, children: [
Text({ bold: true, children: ['How to play'] }),
Text({ wrap: 'wrap', children: ['1. Press c to call a number, or a to call one every ' + g.speed + ' seconds.'] }),
Text({ wrap: 'wrap', children: ['2. A called number on your card lights up yellow: Tab or click it, then Enter to mark it.'] }),
Text({ wrap: 'wrap', children: ['3. Five in a row, column, or diagonal (FREE counts): press b. Claude claims one call late, so shout first.'] }),
Text({ dimColor: true, wrap: 'wrap', children: ['Keys need the pane focused: click it if nothing happens. h hides this.'] }),
] })
const footer = Box({
flexDirection: 'row',
columnGap: 3,
flexWrap: 'wrap',
children: [
Button({ key: 'call', label: 'Call', hotkey: 'c', plain: true, onPress: () => call($) }),
Button({ key: 'auto', label: g.auto ? 'Auto on' : 'Auto off', hotkey: 'a', plain: true, onPress: async () => {
const updated = await change($, (cur) => (cur.winner ? cur : { ...cur, auto: !cur.auto }))
if (updated.auto) await startAuto($)
else stopAuto()
} }),
Button({ key: 'claim', label: 'Bingo!', hotkey: 'b', plain: true, onPress: async () => {
let error: string | undefined
const updated = await change($, (cur) => {
const r = claim(cur)
error = r.error
return r.error ? cur : { ...r.game, auto: false }
})
if (error) $.ui.toast(error)
else {
stopAuto()
$.ui.toast('BINGO! You won with ' + updated.winningLine + '.', { timeoutMs: 6000 })
}
} }),
Button({ key: 'new', label: 'New game', hotkey: 'n', plain: true, onPress: () => startNew($) }),
Button({ key: 'help', label: showHelp ? 'Hide help' : 'Help', hotkey: 'h', plain: true, dimColor: true, onPress: () => {
help = !showHelp
$.ui.invalidate('ui.render')
} }),
Text({ dimColor: true, children: ['Esc closes · you ' + g.stats.wins + ' · Claude ' + g.stats.losses] }),
],
})
return Box({ flexDirection: 'column', rowGap: 1, children: showHelp ? [header, cards, legend, howTo, footer] : [header, cards, legend, footer] })
})Licence text (MIT)
MIT License Copyright (c) 2026 claude-mods contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
How to build this: Pane (panel), Add a slash command
What its code calls
remembers
What its code shows
Read from the source at commit 840c64ba63c2 on 2026-10-11. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.mods/bingo/hooks/register.ts |
| Parses | Every file parses as TypeScript or JavaScript.2 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs |
| Reads and sends | Whether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reaches nothing outside |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets ModsCode show its code; otherwise the code is linked.MIT |
| Settings hooks | Hooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.no settings hooks: its function hooks alone |
| Servers it ships | MCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/ |
| Skills, commands, agents | What its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.no skills, commands, agents or workflows |
| Tools and MCP | Whether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).calls no tool, MCP server or command |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds command bingo |
| Events it hooks | By what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: command.run (bingo) · reads: classic.SessionStart · also: session.start, ui.close, ui.render (Pane) · timers: clock.every |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.reads no files, environment variables, settings or transcript |
| Writes, by name | The files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.writes no files, environment variables, settings or conversation rows |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and ModsCode does not vouch for what this code does. Read its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
From its marketplace
Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:
/plugin marketplace add MDmubarak786/claude-mods/plugin install bingo@modhub/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (840c64ba63c2). Compare them before you install. /reload-plugins loads it into a session that is already open.
Try the commit ModsCode read
No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:
git clone https://github.com/MDmubarak786/claude-modsgit -C claude-mods checkout 840c64ba63c2930ae76a782bfe799e381ff92b70claude plugin validate claude-mods/mods/bingoclaude --plugin-dir claude-mods/mods/bingoThe validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.
Ask Claude about it
With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:
Read the ModsCode mod "mdmubarak786-bingo" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- ruflo-swarmruvnet★ 74,323
- code-modernizationAnthropic★ 37,653
- moai-boardMoAI-ADK★ 1,230
- crit-tuiTomasz Tomczyk★ 1,196
- lcu-approveLCU★ 894
- ai-maestro-secrets23blocks-OS★ 817
More from this repository
- big-outputMohammed Mubarak★ 0
- circuit-breakerMohammed Mubarak★ 0
- connect-fourMohammed Mubarak★ 0
- copy-lastMohammed Mubarak★ 0
- dingMohammed Mubarak★ 0
- fencemodhub maintainers★ 0
See all 24 mods in this repository
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/mdmubarak786-bingo/)