git.ucc.asn.au
/
progcomp2013.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Got cgi script to work
[progcomp2013.git]
/
qchess
/
src
/
agent_bishop.py
diff --git
a/qchess/src/agent_bishop.py
b/qchess/src/agent_bishop.py
index
0323edb
..
20cb4c0
100644
(file)
--- a/
qchess/src/agent_bishop.py
+++ b/
qchess/src/agent_bishop.py
@@
-2,10
+2,9
@@
class AgentBishop(AgentRandom): # Inherits from AgentRandom (in qchess)
class AgentBishop(AgentRandom): # Inherits from AgentRandom (in qchess)
- def __init__(self, name, colour):
+ def __init__(self, name, colour
,value={"pawn" : 1, "bishop" : 3, "knight" : 3, "rook" : 5, "queen" : 9, "king" : 100, "unknown" : 2}
):
InternalAgent.__init__(self, name, colour)
InternalAgent.__init__(self, name, colour)
- self.value = {"pawn" : 1, "bishop" : 3, "knight" : 3, "rook" : 5, "queen" : 9, "king" : 100, "unknown" : 4}
-
+ self.value = value
self.aggression = 2.0 # Multiplier for scoring due to aggressive actions
self.defence = 1.0 # Multiplier for scoring due to defensive actions
self.aggression = 2.0 # Multiplier for scoring due to aggressive actions
self.defence = 1.0 # Multiplier for scoring due to defensive actions
UCC
git Repository :: git.ucc.asn.au