mage

magefreeMIT活跃维护

用 Java 实现的万智牌(Magic: The Gathering)开源游戏引擎,支持单人对战 AI 对手和联机对战,可自由组牌、模拟完整对局规则。

XMage - Magic Another Game Engine

xmage_1.4.63V1发布于 2026-10-31 09:47 UTC2,405star +1 / 7 天984fork同步于 2026-11-10 11:44 UTC

怎么上手

由 README 提炼,执行前请确认
从 https://xmage.today/ 下载并按说明安装;安装 Java 8+ 后通过启动器运行,与 AI 对战需先启动 server 并连接 localhost
硬件要求按 README 说明

README 未说明具体硬件要求;需安装 Java 8 或更高版本,支持 Windows、Linux、MacOS,可在树莓派等非标准硬件上运行(见 FAQ 链接)。

支持 Apple Silicon
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

万智牌完整规则引擎,支持三万两千张卡牌,可联机或离线对战 AI 与好友

用 Java 实现的万智牌(Magic: The Gathering)开源游戏引擎,支持单人对战 AI 对手和联机对战,可自由组牌、模拟完整对局规则。

核心能力

  • 服务端强制执行全部规则并隐藏信息,客户端无法作弊
  • 内置约 9000 个单元测试,覆盖率约 80%
  • 支持双人对决及最多 10 人的指挥官等多人对局
  • 提供快速 AI 对手,可用于对局与轮抽组牌
  • 支持轮抽、瑞士轮或淘汰制赛事,最多 16 人

容易踩的坑

安装目录不要放在 Program Files 或下载文件夹,推荐如 D:\games\xmage;与 AI 对战必须自行启动 server 应用并通过 localhost 连接;内存不足导致卡顿时需在启动器 Java 选项加 -Xmx3000m 等参数,给 5GB 以上无意义

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本xmage_1.4.63V1
  1. xmage_1.4.63V1最新正式版2026-10-31 · 2026-10-31 09:47 UTC

    Improved drafts and AI, images download, animations and 268 new cards like Star Trek

    New release introduces improved drafts with pick suggestions and better AI, better images download and card animations. It also contains 268 new cards from Star Trek and other sets and includes over 200 fixes in existing cards and abilities.

    Thank you for supporting the project and the server! Your support makes updates like this possible.

    💪 Here are some awesome stats from the previous update with the network rework:

    😍 Official server, install instructions, files to download and project support 😍 https://xmage.today/

    Full release notes: https://github.com/magefree/mage/wiki/Release-1.4.63#release-1463v1-2026-10-31

  2. xmage_1.4.62V12026-10-03 · 2026-10-03 20:56 UTC
    查看更新说明

    Welcome to Async World with reworked and fast network, 422 new cards, prepared and rulebreakers

    One of the most important updates in recent years 💪 With the reworked network and client-server logic, XMage now works in a truly async mode. No more dependence on slow or fast connections, no more laggy opponents ruining the game. Players from every corner of the earth are welcome 🤜🤛

    New release contains network rework for faster and stable games and drafts, 422 new cards from FRA and other new and old sets including 46 cards with prepared mechanics and 3 cards with rulebreakers. It also contains over 100 fixes in existing cards and abilities.

    😍 Official server, install instructions, files to download and project support 😍 https://xmage.today/

    Full release notes: https://github.com/magefree/mage/wiki/Release-1.4.62#release-1462v1-2026-10-03

  3. xmage_1.4.61V12026-08-12 · 2026-08-12 12:39 UTC
    查看更新说明

    Improved AI, images, and ~400 new cards from Marvel, Star Trek and Hobbit

    New release contains improved AI with modal spells support, scryfall images download fix, and many hot-fixes for some newly added cards. Also it includes 377 new cards from MSH, MSC, TRK, TRC, HOB, HOC and others.

    😍 Official server, install instructions and files to download: https://xmage.today/

    Full release notes: https://github.com/magefree/mage/wiki/Release-1.4.61#release-1461v1-2026-08-12

  4. xmage_1.4.60V32026-07-11 · 2026-07-11 16:12 UTC
    查看更新说明

    Hot-fixes to many cards, abilities and choose dialogs

    New release contains dozens of card and ability fixes, including copies, casts and dfc. It also improved GUI selection and auto-selection in some use cases, better game logs and many more.

    Install instructions and files to download: https://xmage.today/

    Full release notes: https://github.com/magefree/mage/wiki/Release-1.4.60#release-1460v3-2026-07-11

  5. xmage_1.4.60V22026-06-28 · 2026-06-28 13:25 UTC
    查看更新说明

    Hot-fixes and 39 new cards from Marver's sets

    New release contains improved game error dialog and hot-fixes for some newly added cards. Also it includes 39 new cards from MSH and MSC.

    Install instructions and files to download: https://xmage.today/

    Full release notes: https://github.com/magefree/mage/wiki/Release-1.4.60#release-1460v2-2026-06-28

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    XMage — Magic, Another Game Engine

    Build Status Latest release Commits since latest release

    XMage is a full rules-enforcement engine for playing Magic against other players or computer AI, online or on your own server. It supports over 32 000 unique cards and more than 91 000 reprints across official sets, plus custom sets like Star Wars.

    Local server supports a special test mode for testing combos and other game situations with pre-defined conditions.

    There are public servers where you can play XMage against other players. You can also host your own server to play against the AI and/or your friends — including fully offline, with no internet connection required.

    XMage community and resources:

    Official public server with released version:

    Other servers and status:

    Features

    • The most tested open-source rules enforcement engine: ~9000 unit tests, ~80% coverage;
    • Cross-platform support: Windows, Linux, MacOS;
    • Two-player duels or multiplayer games (Commander and others) with up to 10 players;
    • Drafts, tournaments and single games with sideboarding supported;
    • Smart and fast AI opponents for both games and draft/deck-building;
    • Cheat-proof by design: all rules and hidden information are enforced server-side — clients never see or act on data they're not authorized to;
    • Deck editor (support deck import from multiple apps and services);
    • Players rating system (Glicko);
    • Supports dozens of formats and game modes like Commander, Oathbreaker, Cube, Tiny Leaders, Super Standard, Historic Standard and more;
    • Single matches or tournaments supported (elimination or swiss type handling), which can be played with up to 16 players;

    Bug report / feature request

    The best way to report bug or feature request is github's issues page.

    Installation / running

    • Download files and follow install instructions on https://xmage.today/
    • You need to have Java version 8 or later to run launcher;
    • Recommended folder to unpack/install: D:\games\xmage (don't use Program Files or Download folders);
    • If you want to play with AI opponents then must run "server" app via the launcher and connect to it via localhost;

    Wiki page contains detailed information about private or public server setup, developer onboarding and other useful things

    Troubleshooting / FAQ

    Github issues page contain popular problems and fixes:

    Performance tweaks

    The main way to increase performance or fix micro-freezes -- increase max memory usage by special java flag:

    1. Run launcher -> Settings -> Java tab -> Client java options text field;
    2. Add or change existing flag to -Xmx3000m or another value based on your free memory stats (recommended settings: 2000m for 1080p desktop, 3000m for 4k desktop). It's useless to give 5+ GB memory;
    3. If you play many AI games then it's recommended to change Server java options with same value too;

    Development

    Full project documentation and instructions for developers can be found in wiki pages.

    First steps for XMage's developers:

    Torch icons created by Freepik - Flaticon