1个不稳定版本

0.2.0 2023年8月12日

#444游戏

MIT/Apache

115KB
1K SLoC

Quarto-rs

您的友好的Quarto游戏。

Quarto In-Game Screenshot

游戏在一个4x4的棋盘上进行,共有16个棋子。每个棋子有四个不同的特征:大小(大/✋或小/🤏)、颜色(浅色/⬜或深色/⬛)、形状(圆形/🟠或方形/🔶)和填充(填充/🔴或空心/⭕)。在您的回合,您可以选择16个棋子中的一个并将其交给您的对手。然后您的对手将这个棋子放在棋盘上的任何空位。

第一个创建至少有一个匹配特征的四个棋子一行的玩家赢得游戏。匹配的特征可以是任何方向,水平、垂直或对角线。在更难的方形模式下(-q),4x4的方形也被视为胜利。

如果所有16个棋子都已放置且没有获胜者,则游戏平局。

Usage: {current_exe_name} <Options>

Options:
    --square-mode|-q:   Enable harder rules: not only 4 of the same in a row,
                        but also a square of 4 is considered a win.
    --base0|-0:         Starts to count at 0 instead of 1 (programmer style)
    --ai-reasoning|-r:  Print information about what the AI is doing, and why,
                        during the game.
    --ai-simulation|-a: Simulate a bunch of AI battles.
    --seed=<>|-s=<>:    Seed the AI RNG
    --pvp|-p            No AI, just humans (player vs player)
    --help|-h:          Print this help screen.

祝你好运!

许可证

根据您的选择,许可协议为Apache许可证版本2.0MIT许可证
除非您明确说明,否则根据Apache-2.0许可证定义的,您有意提交以包含在此软件包中的任何贡献,将双重许可如上所述,不附加任何额外条款或条件。

无运行时依赖