-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
122 lines (91 loc) · 3.77 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
CombatWiz is a combat simulation intended to determine the victory probabilities
of combatants using Monte Carlo simulation methods.
Current Status: Allows combat between two sides, and produces simple output.
#Next Steps:
* Creature editor
* Graphical output
* Map-awareness in which only one object can occupy a block
* Missile weapons
* Intelligent manuevering
* Surrender, Panic, Fleeing
* Changing weapons
* Multiple attacks per round
* Special effect attacks
#Its objectives include:
* run on linux or mac
* web front-end
* run multiple scenarios (each many times) to determine best tactics
#Example Run:
$ combatwiz_runner.py --sidea 1 3 --sideb 4 --charfile --iterations 1000 ../data/creatures.csv
----------------------------------------------------------------
fighter_num: fighter1 side: side-a
critter_id: 1 name: orc
hd: 1 hp: 6
ac: 8 race: orc
class: monster class_level: 0
attack_thaco: 20 attack_damage: 1-8
vision: Infra-6 move: 8
fighter3
----------------------------------------------------------------
fighter_num: fighter3 side: side-b
critter_id: 4 name: giant
hd: 0 hp: 50
ac: 4 race: giant
class: monster class_level: 10
attack_thaco: 6 attack_damage: 11-20
vision: standard move: 12
fighter2
----------------------------------------------------------------
fighter_num: fighter2 side: side-a
critter_id: 3 name: gilgion
hd: 0 hp: 86
ac: -3 race: human
class: paladin class_level: 8
attack_thaco: 10 attack_damage: 10-17
vision: standard move: 8
----------------------------------------------------------------
For: gilgion
Battles: 1000
Total Wins: 864
Total Damage Taken: 29672
Total Rounds Required: 5488
Mean Rounds Required: 6.4
Percentage of Wins: 86
Mean PCT HP Taken: 39%
For: giant
Battles: 1000
Total Wins: 136
Total Damage Taken: 4383
Total Rounds Required: 1058
Mean Rounds Required: 7.8
Percentage of Wins: 13
Mean PCT HP Taken: 64%
For: orc
Battles: 1000
Total Wins: 12
Total Damage Taken: 0
Total Rounds Required: 42
Mean Rounds Required: 3.5
Percentage of Wins: 1
Mean PCT HP Taken: 0%
#Installation
* Using [pip](http://www.pip-installer.org/en/latest/) (preferred) or [easyinstall](http://peak.telecommunity.com/DevCenter/EasyInstall):
~~~
$ pip install combatwiz
$ easy_install combatwiz
~~~
* Or install manually from [pypi]:
~~~
$ mkdir ~\Downloads
$ wget https://pypi.python.org/packages/source/d/combatwiz/combatwiz-0.12.tar.gz
$ tar -xvf easy_install combatwiz
$ cd ~\Downloads\combatwiz-*
$ python setup.py install
~~~
#Dependencies
* Python 2.6 or Python 2.7
#Licensing
* Gristle uses the BSD license - see the separate LICENSE file for further
information
#Copyright
* Copyright 2013 Ben Farmer, Ken Farmer