Skip to content
View Bakar404's full-sized avatar
🤿
🤿

Highlights

  • Pro

Block or report Bakar404

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Bakar404/README.md

Ahmed Abdelsalam, drawn in pixels, waving: "Hi, I'm Ahmed. I like to learn & build!"
Interests: being creative, building with AI, building cool products and game theory. Tools. AI + agents: MCP, Multi-agent orchestration, Agent evals, Microsoft Agent Framework, Azure AI. Languages: Python, TypeScript, JavaScript, Swift, SQL, C++, R, DAX, HTML/CSS. Build: React, Next.js, Vite, Tailwind, Node.js, FastAPI, SwiftUI, CoreAudio. Data + cloud: Azure, Microsoft Fabric, Power BI, Power Platform, Data Factory, Synapse, Databricks, pandas, NumPy, SciPy. Ship: Supabase, Firebase, Cloudflare Workers, GitHub Actions, Playwright, Git, Azure DevOps, Jira. + Anything that gets the job done.
Projects
Cairn: An AI tutor that runs on your GitHub Copilot subscription. Built with TypeScript, Next.js, Electron.Markov arena: Tests whether a team of AI agents really beats a single agent on your task. Built with Python, FastAPI, Next.js.
Backward induction: Game theory reveals what a model decides inside, versus what its reasoning says. Built with Python, Interpretability.LSAT tracker: LawHub score reports in, a private analytics dashboard out. Built with Python, FastAPI, React.
VolC: Per-app volume control from the macOS menu bar. Built with Swift, SwiftUI, CoreAudio.RunTrack: Race training plans and a run log, from 5K to the marathon. Built with JavaScript, Chart.js, Firebase.
LinkedInAll repos
Nim against a perfect bot, game 2, move 1. Heaps: A has 1, B has 3, C has 5; nim-sum 7. Games won: humans 0, bot 1. Game 1: @Bakar404 took 1 from B, then the bot took the last match and won. Pick a heap and how many matches to take with the keys below.
Heap A:Take 1 from heap A
Heap B:Take 1 from heap BTake 2 from heap BTake 3 from heap B
Heap C:Take 1 from heap CTake 2 from heap CTake 3 from heap CTake 4 from heap CTake 5 from heap C

How does the bot decide?

The bot never guesses. It writes each heap in binary and XORs them together, column by column with no carrying. That's the nim-sum.

  • Facing a nim-sum of 0? Any move you make breaks the zero, and the bot can always restore it. It keeps handing you zeros until it takes the last match.
  • Facing anything else? Some move turns it into 0. Make that move every turn and you take the last match. Charles L. Bouton proved this in 1901, one of the first results in combinatorial game theory.

Every game starts with a nonzero nim-sum and you move first, so a perfect bot can still be beaten.

A key opens an issue titled like nim: take 2 from A (game 1, move 1). A GitHub Action plays your move and the bot's with src/nim.py, redraws the board and replies to you. Every pixel here is drawn by src/scenes.py.

Pinned Loading

  1. markov-agent-orchestrator markov-agent-orchestrator Public

    An experiment harness that answers whether multi-agent orchestration beats a single agent on your task, with a pixel-art arena that shows the decisions being made and paid for.

    Python

  2. RunTrack RunTrack Public

    Race training planner and run log for 5K to marathon. Runs locally in the browser with no sign-up, with optional Firebase sync and a bring-your-own-key AI planner.

    JavaScript

  3. lsat-tracker lsat-tracker Public

    Turn LawHub LSAT score reports into a private analytics dashboard. Runs on your computer: no account, no cloud.

    JavaScript

  4. VolC VolC Public

    Native macOS menu bar app for lightweight per-app volume control using SwiftUI, CoreAudio process discovery, and safe AppleScript fallbacks for supported apps

    Swift 1

  5. backward-induction-interp backward-induction-interp Public

    Game-Theoretic Backward Induction & Weight-Space Programming to reveal internal neural decisions vs. surface CoT reasoning

    Python

  6. cairn cairn Public

    An AI tutor that runs on your GitHub Copilot subscription. Built on LearnHarness.

    TypeScript