MMbg 1.10.36 - Backgammon for MMBasic
Copyright (C) 2026 Matthias Hollatz - Soli Deo gloria
Free software, GNU GPL v3 or later (see LICENSE.txt).
Neural network weights derived from GNU Backgammon.

Three editions - together they cover every RP2350 board
  mmbg_pc3.bas    boards with PSRAM (main edition, WLAN, gnubg)
  mmbg_pc1.bas    HDMI or VGA boards without PSRAM, no WLAN
  mmbg_pica.bas   PicoCalc (LCD 320x320)

Tested devices (1.10.36)
  Device                          Edition     Firmware
  Pico Computer 3 (PC3)           mmbg_pc3    PicoMitePC3 V7.00.00RC6
  Colour Maximite 2 (CMM2)        mmbg_pc3    CMM2 7.00.00b4
  PicoMite HDMI/USB "PC1"         mmbg_pc1    PicoMiteHDMI V7.00.00RC6
  Pico 2 + VGA reference board    mmbg_pc1    PicoMiteVGA V7.00.00RC6
  PicoCalc with Pico 2 W          mmbg_pica   WebMite V7.00.00RC6

Installation
  1. Copy the folder mmbg to the SD card, e.g. B:/mmbg
     (name, drive and depth of the folder are free).
  2. PC1, VGA board and PicoCalc only - once:
       OPTION MODBUFF ENABLE 192
     WARNING: changing this option formats drive A:!
     Save anything on A: first. MMbg then loads bgnet16.mb
     into the MODBUFF by itself at the first start (1-2 s).
     At least 152 KB are needed, 192 KB recommended (most MOD
     music files need that much too). With the default 128 KB
     the big nets are off (engine 3 only).
  3. Start from that folder:
       PC3, PC1, VGA board:
         CHDIR "B:/mmbg"
         RUN "mmbg_pc3.bas"       (or "mmbg_pc1.bas")
       PicoCalc (needs the comments stripped, or memory is short):
         CHDIR "B:/mmbg"
         LOAD "mmbg_pica.bas", C
         RUN
       Colour Maximite 2 (no LOAD "..." there):
         CHDIR "mmbg"
         RUN "mmbg_pc3.bas"
  Logs and .mat files go to mmbg/log (created automatically).
  Each edition uses only the files it needs.

Firmware note (PicoMite RC6)
  The first start of the PicoMiteHDMI and PicoMiteRP2350VGA builds
  resets all options and clears flash and program memory. Save
  your options first (OPTION DISK SAVE). Afterwards set
  OPTION MODBUFF ENABLE 192 again (see step 2).

Example: Pico 2 + VGA reference board
  OPTION RESOLUTION 640x480 @ 315000KHz
  OPTION SDCARD GP13, GP10, GP11, GP12
  OPTION MODBUFF ENABLE 192
  (OPTION COMPILE ON also works)

New since 1.10.34
  - New edition MMbg PC1 for HDMI/VGA boards without PSRAM:
    PC3 layout and mouse, big nets read straight from the MODBUFF.
  - PicoCalc: big nets from the MODBUFF as well (no more row
    buffer and SD reads while thinking), larger tables as on PC3.
  - Screenshot by the firmware on all devices: Print Screen key
    or Ctrl+\ saves SCREEN_yyyymmdd_hhmmss.BMP in the root of the
    SD card. With OPTION PRINTSCREEN FORMAT PNG (once, at the
    prompt) as PNG - the file manager shows it on the device
    (PicoMite RC6 / CMM2 b4). The old Ctrl+P is gone.
  - Mouse: a click on your own dice asks before it undoes
    (click again or Y). The key U still undoes at once.
  - "deep" only for the computer, terminal board drawn before the
    move list is computed, match counter in the terminal.
  - Match end reads "O wins the match 5-2".
  - Options page, test T: a failed connection no longer jumps back
    to the game.
  - PicoCalc: all prompts fit the 40-column LCD.

Contents
  mmbg/                 programs, nets, bear-off database, settings
                        bgnet0.bin, bgnet2.bin, bgesc.bin: big nets
                        PC3 (PSRAM)
                        bgnet16.mb, bgpk16.dat: big nets PC1/PicoCalc
                        (MODBUFF)
                        bgnet35.dat, bgbo10.dat: fallbacks, used only
                        if bgnet345.dat / bgbo15.dat are missing
  mmbg/log/             folder for logs and .mat files
  gnubg_start_PC/       batch files to start gnubg on a Windows PC as
                        opponent over WLAN (0-, 1- or 2-ply, port 41000)
  MMbg_Manual.pdf       manual (English), MMbg_Handbuch.pdf (German)

Please report bugs in the TheBackShed forum.
