Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
0b98907
[add] creat test include 3 function
Remalloc Aug 6, 2017
2d278b7
[modify] create some test to 8
Remalloc Aug 6, 2017
3df6e57
[modify] add new function record
Remalloc Aug 6, 2017
c5a9ebd
[modify] modify PEP8 style
Remalloc Aug 6, 2017
9cc915f
[modify] modify PEP8 style
Remalloc Aug 6, 2017
2b435fa
Revert "[modify] modify PEP8 style"
Remalloc Aug 6, 2017
73a1a5c
[modify] modify PEP8 style
Remalloc Aug 6, 2017
da077de
[modify] modify type_check function
Remalloc Aug 7, 2017
a15dcaa
[modify] test type_check
Remalloc Aug 7, 2017
cf86781
[add] create controller
Remalloc Aug 10, 2017
7c229a7
[add] create main_window
Remalloc Aug 10, 2017
c29cb9c
[modify] ControlMainWindow
Remalloc Aug 10, 2017
eec04e1
[add] global variable
Remalloc Aug 11, 2017
b28e89a
[add] import img
Remalloc Aug 12, 2017
27c077c
[add] img
Remalloc Aug 12, 2017
e446195
[modify] global variable
Remalloc Aug 12, 2017
eb062d2
[modify] fix bugs
Remalloc Aug 12, 2017
7e92ad5
[add] test controller
Remalloc Aug 13, 2017
cf16c71
[add] game set form
Remalloc Aug 13, 2017
75d90c2
[modify] main window ui
Remalloc Aug 13, 2017
7a860ee
[add] control game set form
Remalloc Aug 13, 2017
335480d
[modify] add config file read function
Remalloc Aug 13, 2017
91ae2e4
[modify] test
Remalloc Aug 13, 2017
00cdb91
[add] test global var
Remalloc Aug 14, 2017
f5f8be3
[add] 12 png
Remalloc Aug 14, 2017
c86497b
[add] main
Remalloc Aug 14, 2017
50ed1e1
[add] var DEFAULT_STYLE
Remalloc Aug 14, 2017
d1602ab
[modify] click_player_button
Remalloc Aug 14, 2017
a744080
[modify] create config and test-model
Remalloc Aug 15, 2017
95b3cb4
[modify] add var ROLE_STYLE and import img
Remalloc Aug 15, 2017
50a78da
[modify] fix some bug
Remalloc Aug 15, 2017
de3a8d9
[add] attribute _accurate and _info
Remalloc Aug 15, 2017
9c53cce
[modify] override closeEvent()
Remalloc Aug 16, 2017
3ad9ffd
[modify] add get_info() ,modify info text, del Module class
Remalloc Aug 16, 2017
cf84a4f
[modify] modify info text
Remalloc Aug 16, 2017
6865384
[add] 13 images
Remalloc Aug 16, 2017
5afd138
[modify] change ui text
Remalloc Aug 16, 2017
59727e6
[modify] change test.info text
Remalloc Aug 16, 2017
b39edb5
[modify] change import
Remalloc Aug 16, 2017
45c124f
[modify] change text language
Remalloc Aug 17, 2017
7690352
[modify] add SPECIAL_ROLE
Remalloc Aug 17, 2017
cb10bad
[modify] add left_button function
Remalloc Aug 17, 2017
39acfe8
[add] add custom-img
Remalloc Aug 19, 2017
bac7cbb
[modify] add custom-img
Remalloc Aug 19, 2017
e422f00
[modify] add custom-img
Remalloc Aug 19, 2017
81f5cbb
[modify] add custom-img
Remalloc Aug 19, 2017
e2a2501
[modify] addButton function
Remalloc Aug 19, 2017
5c1ee11
[modify] add var ALL_ROLE and refactor code
Remalloc Aug 20, 2017
790c582
[modify] refactor code
Remalloc Aug 20, 2017
b39a7f2
[modify] add right-menu
Remalloc Aug 21, 2017
72833f3
[modify] refactor code
Remalloc Aug 21, 2017
4f030f0
[add] config work space
Remalloc Aug 21, 2017
eaf3528
[modify] add tool sheriff and fix some BUG
Remalloc Aug 22, 2017
937c0b7
[modify] change text language to zh-cn
Remalloc Aug 22, 2017
a46bf03
[add] img
Remalloc Aug 22, 2017
3b1edff
[del] del img
Remalloc Aug 22, 2017
4f1d83b
[modify] add tool button
Remalloc Aug 22, 2017
672b0c3
[add] add img
Remalloc Aug 23, 2017
7a1c857
[add] add img
Remalloc Aug 23, 2017
57503dc
[modify] fix name
Remalloc Aug 23, 2017
54bef44
[modify] refactor code
Remalloc Aug 23, 2017
391514d
[modify] add get_set fucation
Remalloc Aug 23, 2017
1990248
[modify] refactor code
Remalloc Aug 23, 2017
b6a6691
[modify] refactor code
Remalloc Aug 23, 2017
9c798c4
[add] add DEAD_TYPE
Remalloc Aug 24, 2017
fb18af5
[add] add dead tool
Remalloc Aug 24, 2017
7a36b9b
[modify] fix some bugs
Remalloc Sep 5, 2017
f411fc7
[modify] clear
Remalloc Sep 5, 2017
e9ac52e
[add] add img
Remalloc Sep 5, 2017
327a9cf
[modify] fix
Remalloc Sep 5, 2017
91eb055
[modify] add notes
Remalloc Sep 6, 2017
5009513
[add] add filter—dialog
Remalloc Sep 6, 2017
d5eb8bb
[modify] create filter_dialog
Remalloc Sep 7, 2017
f82f0dd
[modify] add filter_dialog function
Remalloc Sep 7, 2017
2ab70bd
[modify] rename '下一轮'
Remalloc Sep 7, 2017
3b29443
[modify] complete filter function
Remalloc Sep 8, 2017
fa94dd4
[modify] new function view_vote
Remalloc Sep 8, 2017
bef0dee
[modify] add default range
Remalloc Sep 8, 2017
ffbe6f7
[add] add defaultOption dialog
Remalloc Sep 8, 2017
f30a268
[modify]
Remalloc Sep 9, 2017
3f4fe0e
[modify] view
Remalloc Sep 9, 2017
7bee882
[modify] fix bugs
Remalloc Sep 9, 2017
d799192
[modify] fix bugs
Remalloc Sep 9, 2017
33c6ee8
[modify] fix bugs
Remalloc Sep 9, 2017
3d2d7a5
[modify] add icon and change view
Remalloc Sep 10, 2017
e9dca44
[modify] fix bug
Remalloc Sep 10, 2017
918cee9
[modify] fix bug
Remalloc Sep 10, 2017
2a5742f
[modify] add calculate_probability function
Remalloc Sep 10, 2017
c51745c
[modify] complete delButton function
Remalloc Sep 10, 2017
c7ace27
[modify] fix bug
Remalloc Sep 11, 2017
1472a6f
[modify] del now_round
Remalloc Sep 11, 2017
df5dbea
[modify] add clean mode
Remalloc Sep 12, 2017
3842177
[modify] add clean mode and fix bug
Remalloc Sep 12, 2017
d6aa4a8
[modify] add save function
Remalloc Sep 12, 2017
f2568d7
[modify] save user clean_mode
Remalloc Sep 13, 2017
db79b73
[modify] add init_view
Remalloc Sep 13, 2017
3f810b3
[modify] add about_info
Remalloc Sep 13, 2017
330a4ff
[modify] add about_info
Remalloc Sep 13, 2017
30e7c6a
[modify] geometry
Remalloc Sep 13, 2017
6149596
[modify] init_view
Remalloc Sep 13, 2017
c57e56c
[modify] fix bug
Remalloc Sep 14, 2017
a7e0017
[modify] del _reliable
Remalloc Sep 14, 2017
462114f
[modify] add vote info
Remalloc Sep 14, 2017
2db56ab
[modify] set enable info_list
Remalloc Sep 14, 2017
370b89e
[modify] fix bug
Remalloc Sep 14, 2017
b37641a
[modify] reformat code
Remalloc Sep 14, 2017
ea0d3a5
[add] vagrant.xml
Remalloc Sep 17, 2017
5f015ee
[add] logo-black.png logo-white.png
Remalloc Sep 17, 2017
0550b32
[add] 死亡.png
Remalloc Sep 17, 2017
3fd892a
[modify] DEFAULT_THRESHOLD = 1.5
Remalloc Sep 17, 2017
a37b98e
[modify] fix bug
Remalloc Sep 17, 2017
95982d5
[add] download.zip
Remalloc Oct 6, 2017
ea14922
[modify] add some tips
Remalloc Oct 6, 2017
91fd504
[modify] rename download
Remalloc Oct 6, 2017
0a0bfce
[add] update v1.1
Remalloc Oct 6, 2017
ffdfd68
[modify] add some imgs
Remalloc Oct 7, 2017
9049ad2
[modify] add some default options
Remalloc Oct 7, 2017
8d88603
[modify]
Remalloc Oct 7, 2017
e549341
[modify] add tips and functions
Remalloc Oct 7, 2017
0e17c42
[modify] 查看上警投票
Remalloc Oct 7, 2017
30b3f1d
[add] v1.2
Remalloc Oct 7, 2017
2a273a6
[modify] fix bug
Remalloc Oct 7, 2017
f5b8f8a
Delete 下载v1.2.zip
Remalloc Oct 7, 2017
f728106
[add] v1.2
Remalloc Oct 7, 2017
7f0a699
Merge remote-tracking branch 'origin/develop' into develop
Remalloc Oct 7, 2017
fd2c36f
[add] img
Remalloc Oct 7, 2017
3e85b95
Delete 下载v1.0.zip
Remalloc Oct 7, 2017
cb0e02b
Delete 下载v1.1.zip
Remalloc Oct 7, 2017
ae84991
Delete READEME.md
Remalloc Mar 19, 2018
c7aa733
update
Remalloc May 20, 2018
f6361f4
Merge remote-tracking branch 'origin/develop' into develop
Remalloc May 20, 2018
9086726
gif
Remalloc May 20, 2018
071ab05
add png
Remalloc May 20, 2018
22d65d8
Create README.md
Remalloc May 20, 2018
3b9349a
Update README.md
Remalloc May 20, 2018
d023024
Update README.md
Remalloc May 20, 2018
267e283
Update README.md
Remalloc May 20, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
config.dat
4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vagrant.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/werewolf.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions READEME.md

This file was deleted.

96 changes: 96 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# werewolf(狼人杀记牌器)
狼人杀记牌器主要的目的是帮助玩家记录场上信息,以此来对局势做出更准确的分析,比较适合网杀玩家。
## 1.主界面索引

<img src="https://github.com/Remalloc/werewolf/blob/develop/gif/%E4%B8%BB%E7%95%8C%E9%9D%A2.png" width = "600" height = "400" alt="主界面" align=center />

* 菜单栏:对局→新建对局、团队分析、查看投票
* 高级:默认值设置、纯净模式
* 关于:联系作者、软件信息
* 工具栏:选择警长、上警投票、明捞、暗捞、轻踩、重踩、金水、银水、指认、收到投票、死亡
* 玩家信息:位置、角色、收到投票、死亡
* 行为记录:筛选
## 2.快速开始
* 对局→新建对局

![新建对局](https://github.com/Remalloc/werewolf/blob/develop/gif/%E6%96%B0%E5%BB%BA%E5%AF%B9%E5%B1%80.png)

|功能|说明|
|:-|:-|
|玩家总数|选择参与的玩家总数,1~12个|
|所有角色类型|可选的角色|
|选择角色类型|已选择的角色|
|>>|右移选择的角色|
|<<|左移选择的角色|
|+|添加自定义角色|
|-|删除自定义角色|
|默认设置|还原最初的设置|

* 标记角色

<img src="https://github.com/Remalloc/werewolf/blob/develop/gif/%E8%AE%BE%E7%BD%AE%E8%A7%92%E8%89%B21.png" width = "600" height = "400" alt="设置角色1" align=center />
<img src="https://github.com/Remalloc/werewolf/blob/develop/gif/%E8%AE%BE%E7%BD%AE%E8%A7%92%E8%89%B22.png" width = "600" height = "400" alt="设置角色2" align=center />

左键点击玩家会显示当前玩家信息,右键选择玩家可以更换角色类型,所有自定义角色会有特殊的图片显示,具体角色类型可以看右边的玩家信息

* 工具栏

左键单击玩家会选择目标为当前玩家,每当单击工具栏上的按钮鼠标会变成十字箭头,用来选择目标玩家。

<img src="https://github.com/Remalloc/werewolf/blob/develop/gif/%E5%B7%A5%E5%85%B7%E6%A0%8F.png" height=300 alt="工具栏" align=left />

1. 警长:选择一位玩家为警长,如果已存在警长会转移警徽,再次点击警长玩家会取消警徽。
2. 上警投票:选择给当前玩家投票的玩家,右键单击取消选择 <font color=red>(注意!是选择给当前玩家投票的玩家)</font>。
3. 明捞:当前玩家选择一位玩家为明捞对象。
4. 暗捞:当前玩家选择一位玩家为暗捞对象。
5. 轻踩:当前玩家选择一位玩家为轻踩对象。
6. 重踩:当前玩家选择一位玩家为重踩对象。
7. 金水:选择一位玩家作为当前玩家的金水。
8. 银水:选择一位玩家作为当前玩家的银水。
9. 指认:当前玩家指认一位玩家的角色。
10. 收到投票(流放):选择给当前玩家投票的玩家,右键单击取消选择<font color=red>(注意!是选择给当前玩家投票的玩家)</font>。
11. 死亡:选择死亡的玩家以及死亡类型,对死亡后的玩家进行上述操作会自动取消。

**详细规则**:明捞、暗捞、轻踩、重踩为狼人杀术语,是指发言中对某位玩家的态度,每轮使用者根据玩家发言选择对应操作,应遵循一轮中每个玩家发言对另一个玩家只进行一次操作记录。

**例如**:1号发言对2号明确表示认同,此时应左键选择1号→明捞→2号,如果1号本轮重复表示认同2号也只记录1次。在此操作会对记录在玩家记录中,对团队分析有影响,具体可以见团队分析。

<img src="https://github.com/Remalloc/werewolf/blob/develop/gif/%E5%85%B6%E4%BB%96%E5%8A%9F%E8%83%BD.gif" width = "600" height = "400" alt="演示" align=center />

## 3.高级功能

* 筛选:选择与当前玩家相关的玩家,当更换当前玩家时会重置筛选对象

![筛选](https://github.com/Remalloc/werewolf/blob/develop/gif/%E7%AD%9B%E9%80%89.png)

* 团队分析(测试):团队分析会根据所有玩家的行为分析出可能在一个出现在一个团队的玩家,并给出概率预测。

<img src="https://github.com/Remalloc/werewolf/blob/develop/gif/%E5%9B%A2%E9%98%9F%E5%88%86%E6%9E%90.png" width = "600" height = "400" alt="团队分析" align=center />

**原理**:每位玩家与其他玩家都会存在一个关系值(初始为0),当1号玩家对2号玩家做出某些操作时会加减对2号玩家的关系值,当关系值高于团队阈值时会变为团队成员(关系值最高的为亲密成员),当关系值小于负的团队阈值时会变为对立成员(关系值最低的为厌恶成员),如果2号玩家是1号玩家的团队成员,但是1号玩家是2号玩家的厌恶成员,那么1号玩家中的团队成员会除去2号玩家,然后从1号玩家的亲密成员中继续循环,直到没有亲密成员或者重复,这就是1号玩家的团队。

<font color=red>注意:这个功能无法分析出“倒钩”玩家,也可能将一些无关人员拉入团队,提供的概率值仅能作为参考</font>
* 默认值设置:

|功能 (默认值)|说明|
|:-|:-|
|团队阈值(+1.5)|团队的划分依赖于团队阈值的大小,增加团队阈值会提高成为团队的门槛,准确度上升,但是需要更多的玩家信息,减少团队阈值会降低门槛,准确度下降,但是只需要少量信息。|
|明捞(+1)|增加高关系值|
|暗捞(+0.5)|增加低关系值|
|轻踩(-1)|减少低关系值||
|重踩(-0.5)|减少高关系值|
|投票(-2)|减少高关系值|
|团队初始概率值(50%)|等于团队阈值时的概率值|

* 纯净模式:

隐藏工具栏和玩家信息,仅提供记录角色功能

<img src="https://github.com/Remalloc/werewolf/blob/develop/gif/%E7%BA%AF%E5%87%80%E6%A8%A1%E5%BC%8F.png" width = "400" height = "400" alt="纯净模式" align=center />

## 4.联系作者:
**QQ**:718801907

**邮箱**:remalloc.virtual@gmail.com

**源码**:[werewolf](https://github.com/Remalloc/werewolf)
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#coding = utf-8
# coding = utf-8
Loading