Skip to content

Commit

Permalink
high score
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveDaisy committed Jun 28, 2017
1 parent 3bb636f commit 013dbc5
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 @@ -131,7 +131,7 @@ def calculateScore(self, step1Board, d0, x0, d1, x1):
# print(datetime.now() - t1)

score = fullLines * 1.8 - vHoles * 1.0 - vBlocks * 0.5 - maxHeight ** 2 * 0.02 \
- stdY * 0.0 - stdDY * 0.05 - absDy * 0.15
- stdY * 0.0 - stdDY * 0.02 - absDy * 0.2
# print(score, fullLines, vHoles, vBlocks, maxHeight, stdY, stdDY, absDy, roofY, d0, x0, d1, x1)
return score

Expand Down

0 comments on commit 013dbc5

Please sign in to comment.