Skip to content

Commit

Permalink
randseed 32 score 837
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveDaisy committed Jun 25, 2017
1 parent b9f5689 commit 73026df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tetris_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ def calculateScore(self, direction, x0):

absDy = sum([abs(x) for x in roofDy])

return fullLines * 3 + nearFullLines * 1.4 - vHoles * 1.8 - hHoles * 0.0 - vBlocks * 0.1 - maxHeight * 0.05 \
return fullLines * 3 + nearFullLines * 1.4 - vHoles ** 2 * 0.5 - hHoles * 0.0 - vBlocks * 0.1 - maxHeight * 0.05 \
- stdY * 0.0 - stdDY * 0.05 - absDy * 0.2

0 comments on commit 73026df

Please sign in to comment.