<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.paulbui.net/wiki/index.php?action=history&amp;feed=atom&amp;title=CombatSimulation.py</id>
	<title>CombatSimulation.py - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.paulbui.net/wiki/index.php?action=history&amp;feed=atom&amp;title=CombatSimulation.py"/>
	<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=CombatSimulation.py&amp;action=history"/>
	<updated>2026-11-01T03:57:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://www.paulbui.net/wiki/index.php?title=CombatSimulation.py&amp;diff=10151&amp;oldid=prev</id>
		<title>Admin at 17:59, 25 April 2013</title>
		<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=CombatSimulation.py&amp;diff=10151&amp;oldid=prev"/>
		<updated>2013-04-25T17:59:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:59, 25 April 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&quot; &gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;warrior = Creature()&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;warrior = Creature()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;warrior.hitPoints = WARRIOR_HP&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;warrior.hitPoints = WARRIOR_HP&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;warrior.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;strenght &lt;/del&gt;= WARRIOR_STR&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;warrior.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;strength &lt;/ins&gt;= WARRIOR_STR&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;warrior.skill = WARRIOR_SKILL&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;warrior.skill = WARRIOR_SKILL&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;warrior.armorClass = WARRIOR_AC&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;warrior.armorClass = WARRIOR_AC&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://www.paulbui.net/wiki/index.php?title=CombatSimulation.py&amp;diff=10146&amp;oldid=prev</id>
		<title>Admin at 15:14, 25 April 2013</title>
		<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=CombatSimulation.py&amp;diff=10146&amp;oldid=prev"/>
		<updated>2013-04-25T15:14:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:14, 25 April 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l39&quot; &gt;Line 39:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;claws = Weapon()&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;claws = Weapon()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;claws.damageModifier = CLAWS_DAMAGE_MOD&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;claws.damageModifier = CLAWS_DAMAGE_MOD&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;claws.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bane &lt;/del&gt;= CLAWS_NAME&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;claws.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;name &lt;/ins&gt;= CLAWS_NAME&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;claws.hitVerb = CLAWS_HIT&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;claws.hitVerb = CLAWS_HIT&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;claws.missVerb = CLAWS_MISS&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;claws.missVerb = CLAWS_MISS&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://www.paulbui.net/wiki/index.php?title=CombatSimulation.py&amp;diff=10142&amp;oldid=prev</id>
		<title>Admin at 16:54, 24 April 2013</title>
		<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=CombatSimulation.py&amp;diff=10142&amp;oldid=prev"/>
		<updated>2013-04-24T16:54:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 16:54, 24 April 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;syntaxhighlight lang=&amp;quot;Python&amp;quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# This class will run a combat simulation using the Weapon and Creature classes&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# This class will run a combat simulation using the Weapon and Creature classes&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;from creature import *&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;from creature import *&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l101&quot; &gt;Line 101:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;print(dead.name + &amp;quot; dies.&amp;#160; &amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;print(dead.name + &amp;quot; dies.&amp;#160; &amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;print(alive.name + &amp;quot; is victorious!&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;print(alive.name + &amp;quot; is victorious!&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://www.paulbui.net/wiki/index.php?title=CombatSimulation.py&amp;diff=10141&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;# This class will run a combat simulation using the Weapon and Creature classes from creature import *  #Warrior WARRIOR_NAME = &quot;Gnusto Frotz&quot;; WARRIOR_TYPE = &quot;valiant warrior&quot;; ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=CombatSimulation.py&amp;diff=10141&amp;oldid=prev"/>
		<updated>2013-04-24T16:54:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;# This class will run a combat simulation using the Weapon and Creature classes from creature import *  #Warrior WARRIOR_NAME = &amp;quot;Gnusto Frotz&amp;quot;; WARRIOR_TYPE = &amp;quot;valiant warrior&amp;quot;; ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;# This class will run a combat simulation using the Weapon and Creature classes&lt;br /&gt;
from creature import *&lt;br /&gt;
&lt;br /&gt;
#Warrior&lt;br /&gt;
WARRIOR_NAME = &amp;quot;Gnusto Frotz&amp;quot;;&lt;br /&gt;
WARRIOR_TYPE = &amp;quot;valiant warrior&amp;quot;;&lt;br /&gt;
WARRIOR_PRONOUN	= &amp;quot;his&amp;quot;;&lt;br /&gt;
WARRIOR_HP = 50;&lt;br /&gt;
WARRIOR_STR = 10;&lt;br /&gt;
WARRIOR_SKILL = 15;&lt;br /&gt;
WARRIOR_AC = 5;&lt;br /&gt;
	&lt;br /&gt;
#monster creature&lt;br /&gt;
MONSTER_NAME = &amp;quot;Schmoo&amp;quot;;&lt;br /&gt;
MONSTER_TYPE = &amp;quot;gruesome monster&amp;quot;;&lt;br /&gt;
MONSTER_PRONOUN	= &amp;quot;its&amp;quot;;&lt;br /&gt;
MONSTER_HP = 50;&lt;br /&gt;
MONSTER_STR = 15;&lt;br /&gt;
MONSTER_SKILL = 10;&lt;br /&gt;
MONSTER_AC = 7;&lt;br /&gt;
&lt;br /&gt;
#Monster&amp;#039;s claws weapon&lt;br /&gt;
CLAWS_DAMAGE_MOD = 3;&lt;br /&gt;
CLAWS_NAME = &amp;quot;claws&amp;quot;;&lt;br /&gt;
CLAWS_HIT = &amp;quot;slashes&amp;quot;;&lt;br /&gt;
CLAWS_MISS = &amp;quot;swipes at but misses&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
#Warrior&amp;#039;s sword weapon&lt;br /&gt;
SWORD_DAMAGE_MOD = 5;&lt;br /&gt;
SWORD_NAME = &amp;quot;sword&amp;quot;;&lt;br /&gt;
SWORD_HIT = &amp;quot;stabs&amp;quot;;&lt;br /&gt;
SWORD_MISS = &amp;quot;swings at but misses&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# Create the warrior&amp;#039;s weapon (sword)&lt;br /&gt;
sword = Weapon(SWORD_NAME, SWORD_DAMAGE_MOD, SWORD_HIT, SWORD_MISS);&lt;br /&gt;
&lt;br /&gt;
#Create the monster&amp;#039;s weapon (claws)&lt;br /&gt;
claws = Weapon()&lt;br /&gt;
claws.damageModifier = CLAWS_DAMAGE_MOD&lt;br /&gt;
claws.bane = CLAWS_NAME&lt;br /&gt;
claws.hitVerb = CLAWS_HIT&lt;br /&gt;
claws.missVerb = CLAWS_MISS&lt;br /&gt;
		&lt;br /&gt;
#Create the warrior&lt;br /&gt;
warrior = Creature()&lt;br /&gt;
warrior.hitPoints = WARRIOR_HP&lt;br /&gt;
warrior.strenght = WARRIOR_STR&lt;br /&gt;
warrior.skill = WARRIOR_SKILL&lt;br /&gt;
warrior.armorClass = WARRIOR_AC&lt;br /&gt;
warrior.name = WARRIOR_NAME&lt;br /&gt;
warrior.type = WARRIOR_TYPE&lt;br /&gt;
warrior.pronoun = WARRIOR_PRONOUN&lt;br /&gt;
&lt;br /&gt;
# Create the monster&lt;br /&gt;
monster = Creature(MONSTER_NAME, MONSTER_TYPE, MONSTER_PRONOUN, MONSTER_HP, MONSTER_STR, MONSTER_SKILL, MONSTER_AC)&lt;br /&gt;
										&lt;br /&gt;
# Arm the creatures with their weapons&lt;br /&gt;
monster.weapon = claws&lt;br /&gt;
warrior.weapon = sword&lt;br /&gt;
		&lt;br /&gt;
# While both creatures are still alive...&lt;br /&gt;
while monster.isAlive() and warrior.isAlive():&lt;br /&gt;
&lt;br /&gt;
    # The monster tries to attack the warrior&lt;br /&gt;
    if monster.tryToAttack(warrior.armorClass):&lt;br /&gt;
        # If the monster hit, the warrior takes damage&lt;br /&gt;
        print(monster.constructHitString(warrior))&lt;br /&gt;
        warrior.takeDamage(monster.calcHitDamage())&lt;br /&gt;
    else:&lt;br /&gt;
        print(monster.constructMissString(warrior))&lt;br /&gt;
&lt;br /&gt;
    print(warrior.name + &amp;quot;:&amp;quot; + str(warrior.hitPoints) + &amp;quot; HP&amp;quot;)&lt;br /&gt;
    print(monster.name + &amp;quot;:&amp;quot; + str(monster.hitPoints) + &amp;quot; HP&amp;quot;)&lt;br /&gt;
    print()&lt;br /&gt;
            &lt;br /&gt;
    # If the warrior dies, break out of this loop&lt;br /&gt;
    if warrior.isAlive() == False:&lt;br /&gt;
        break&lt;br /&gt;
    &lt;br /&gt;
    # The warrior tries to attack the monster&lt;br /&gt;
    if warrior.tryToAttack(monster.armorClass):&lt;br /&gt;
        # If the warrior hit, the monster takes damage&lt;br /&gt;
        print(warrior.constructHitString(monster))&lt;br /&gt;
        monster.takeDamage(warrior.calcHitDamage())&lt;br /&gt;
    else:&lt;br /&gt;
        print(warrior.constructMissString(monster))&lt;br /&gt;
&lt;br /&gt;
    print(warrior.name + &amp;quot;:&amp;quot; + str(warrior.hitPoints) + &amp;quot; HP&amp;quot;)&lt;br /&gt;
    print(monster.name + &amp;quot;:&amp;quot; + str(monster.hitPoints) + &amp;quot; HP&amp;quot;)    &lt;br /&gt;
    print()&lt;br /&gt;
		&lt;br /&gt;
# Figure out whose alive and dead (good example of the ? : operator)&lt;br /&gt;
if warrior.isAlive() == True:&lt;br /&gt;
    alive = warrior&lt;br /&gt;
    dead = monster&lt;br /&gt;
else:&lt;br /&gt;
    alive = monster&lt;br /&gt;
    dead = warrior&lt;br /&gt;
&lt;br /&gt;
# print out a message to indicate the outcome of the battle.  &lt;br /&gt;
print(dead.name + &amp;quot; dies.  &amp;quot;)&lt;br /&gt;
print(alive.name + &amp;quot; is victorious!&amp;quot;)&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>