Metadata-Version: 2.1
Name: pyjzq
Version: 0.2
Summary: A command-line tic-tac-toe game
Home-page: https://github.com/tianhukj/pyjzq
Author: tianhukj
Author-email: tianhukj@outlook.com
License: UNKNOWN
Description: # pyjzq
        
        ![Build Status](https://github.com/tianhukj/pyjzq/actions/workflows/python-package.yml/badge.svg)
        ![License](https://img.shields.io/github/license/tianhukj/pyjzq)
        ![PyPI](https://img.shields.io/pypi/v/pyjzq)
        
        这是一个基于命令行的井字棋游戏。
        
        ## 安装
        
        ```bash
        pip install pyjzq
        ```
        
        ## 使用方法
        在Python代码中使用
        你可以在Python代码中导入并使用这个包。以下是一个简单的示例：
        
        ```
        from pyjzq import TicTacToe, play, HumanPlayer
        
        def main():
            # 创建游戏实例
            game = TicTacToe()
        
            # 创建玩家实例
            x_player = HumanPlayer('X')
            o_player = HumanPlayer('O')
        
            # 开始游戏
            play(game, x_player, o_player)
        
        if __name__ == "__main__":
            main()
        ```
        
        ## 示例输出
        以下是运行上述代码时的示例输出：
        
        ```
        | 0 | 1 | 2 |
        | 3 | 4 | 5 |
        | 6 | 7 | 8 |
        
        X makes a move to square 0
        | X |   |   |
        |   |   |   |
        |   |   |   |
        
        O makes a move to square 1
        | X | O |   |
        |   |   |   |
        |   |   |   |
        
        ...
        
        X wins!
        ```
        
        
        ## 开发
        如果你想要为这个项目做出贡献，你可以按照以下步骤进行开发和测试：
        
        ### 克隆仓库
        ```bash
        git clone https://github.com/tianhukj/pyjzq.git
        ```
        ### 创建虚拟环境并安装依赖
        ```bash
        cd pyjzq
        python -m venv venv
        source venv/bin/activate  # Windows 上使用 `venv\Scripts\activate`
        pip install -r requirements.txt
        ```
        
        ### 运行测试
        ```bash
        python main.py
        ```
        
        ## 许可证
        该项目使用 [`MIT 许可证`](LICENSE)
        
        # #贡献
        欢迎贡献！请阅读 CONTRIBUTING.md 了解详细的贡献流程。
        
        ## 反馈
        如果你有任何问题或建议，请通过 [Issues](https://github.com/tianhukj/pyjzq/issues) 页面反馈。
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
