You can play a small game in Bot mode and Code mode at any time, or while a reply takes a while in Chat. Nothing starts by itself.

Playing

A Play button (a game controller) is in the message box. In Bot mode (bot chats, group chats, Bots home) and Code mode it shows as soon as the session opens, whether or not anything is running. In Chat it shows beside Stop after about five seconds of work, so quick replies never show it. While you type in the message box, the Play button steps aside; it comes back when the box is empty again. The game opens in a small window over the app. On Desktop it sits at the bottom right, and you can drag it by its top bar. On phones (the ai.allternit.com phone layout and the m.allternit.com app) it sits just above the message box. The iPhone app works the same way: the Play button is always in the bot, group and Code composers, and beside Stop after five seconds on Home, and Settings → Advanced → Waiting games turns the games off (iPhone app → Waiting games). The message box stays usable, so you can still steer or queue a message. The top bar of the window has: If you opened the game while a bot was working, or a bot starts working while you play, the top bar shows Working…. With nothing running it shows no status. When the reply is ready, the game pauses and says so. Back to chat closes the game. Keep playing goes on. Best scores are kept on this device. Every game picks up where you left it. Closing the window, switching to another game or a ready reply pauses it, and it carries on when you come back. Reloading the app starts the small games again. Gizzi RPG keeps its own saves.

The games

Gizzi RPG and Gizzi Brawl are the live games from gizzirpg.allternit.com and brawl.allternit.com, shown inside the window. They need a connection.

Turning it off

Settings → Appearance → Background → Waiting games turns the Play button on or off everywhere on Desktop and the web. In the iPhone and Android apps the switch is Settings → Advanced → Waiting games. It is on by default.

For developers

  • src/components/waiting-games/ in allternit-ai:
    • waiting-games-engine.ts: the eight canvas games, plus SITE_GAMES (Gizzi RPG and Gizzi Brawl: url, hint, landscape). createWaitingGames(canvas, ui, racers) returns pick, pointer, click, key, setPlaying, resize and destroy. Best scores are stored in allternit.waitingGames.best.
    • waiting-games.store.ts: useWaitingGames (open, expanded, game, work, owner) and useWaitingGamesEnabled (appearance.waitingGames).
    • WaitingGamesPlayButton.tsx: the Play button. anytime shows it from mount (Bot and Code); without it, it shows after 5 s of work. hidden (set while the draft has text) hides it without unmounting. It stays mounted and calls report(id, busy). Only the button that opened the game can mark the reply ready.
    • WaitingGamesLayer.tsx: the window, portalled to document.body. It is mounted beside BotCarryLayer in ShellApp and PhoneProviders. Esc is handled in the capture phase, because app-wide shortcuts take it first. Once opened it stays mounted and is only hidden when closed, so the canvas game and the site games keep their place. For a site game it shows SiteGameFrame (an iframe under the top bar) instead of the canvas; a landscape game in a window taller than wide gets the iframe rotated 90°. While focus is inside the frame, Esc goes to the game, so use ✕ or Full screen. A site game stays loaded once played; the window posts {type: "allternit:pause"} to it when it’s off screen, closed or waiting on Reply ready, and {type: "allternit:resume"} when it’s back. Gizzi RPG (js/gizzi.js) and Gizzi Brawl (main.js, HostPause) only accept these from their parent window, or from the page itself tagged from: "allternit-ios".
  • The Play button is placed in ThreadComposer (bot and group chats) and ChatComposer (Chat and Code; full, compact and terminal layouts).
  • The site games’ hosts are in the CSP frame-src in public/_headers (ai.allternit.com) and fabric-session-pwa-functions/_site-headers.js (m.allternit.com). Desktop already allows https: frames (surfaces/allternit-desktop/src/main/security.ts). A new site game needs its host in both files.
  • iPhone: Features/WaitingGames/ in surfaces/allternit-mobile/ios. WaitingGameID.site gives the URL and hint, and WaitingSiteGameView shows it in a WKWebView, turned in UIKit for a landscape game so touches line up. The window stays mounted once opened, and the web view posts the same pause and resume messages on the page itself.
  • Android (native app): feature/chat/src/main/java/com/allternit/feature/chat/games/ in surfaces/allternit-mobile/android. The same eight canvas games, ported from the iPhone’s Swift, the same store rules (WaitingGamesStore.report), and the window mounted once in WorkspaceShell. The site games load in a locked-down WebView (JavaScript only there, no file access, only *.allternit.com pages; other links open in the browser) that is turned in a FrameLayout for a landscape game, and it posts the same pause and resume messages tagged from: "allternit-ios", the tag the games accept from the page itself. The switch is Settings → Advanced → Waiting games (Android app → Waiting games).
  • Bot Race uses the first four of your bots (isBot agents) as racers. With none, it uses four stand-in names.