【文件属性】:
文件名称:PyCatan:在Python中播放Catan的定居者的API
文件大小:42KB
文件格式:ZIP
更新时间:2021-05-14 13:07:47
Python
吡卡坦
用于模拟《卡坦殖民者》游戏的库
跑步
从pip3下载
pip3安装pycatan
从源运行测试
简单的方法
运行bash文件test.sh`.test.sh'
艰辛的道路
安装和
创建一个新的虚拟环境( mkvirtualenv test )
安装
从根目录运行python -m pytest tests
内容
文献资料
CatanGame
CatanBoard
CatanPlayer
等等
游戏范例某物
文献资料
CatanGame模块
代表Catan游戏
归因
board 游戏中的CatanBoard
players CatanPlayer的数组(代表玩家)
longest\_road\_owner 道路最长的球员的指数
职能
CatanGame.__init__(self, num_of_players=3, on_win=None, starting_boa
【文件预览】:
PyCatan-master
----setup.py(456B)
----.gitignore(939B)
----test.sh(257B)
----MANIFEST.in(17B)
----dist()
--------pycatan-0.1.tar.gz(14KB)
----Pipfile.lock(1KB)
----LICENSE.txt(1KB)
----examples()
--------board_renderer.py(7KB)
----pycatan()
--------card.py(360B)
--------__init__.py(248B)
--------tile.py(398B)
--------tile_type.py(198B)
--------default_board.py(9KB)
--------harbor.py(2KB)
--------building.py(894B)
--------point.py(248B)
--------starting_board.json(872B)
--------statuses.py(1KB)
--------player.py(12KB)
--------board.py(6KB)
--------game.py(13KB)
----tests()
--------test_board.py(1KB)
--------test_game.py(7KB)
--------test_default_board.py(4KB)
----Pipfile(93B)
----CHANGES.txt(30B)
----readme.md(10KB)
----.gitattributes(378B)