Skip to content

Commit

Permalink
fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
david karapetyan committed Apr 14, 2012
1 parent cd7090b commit 0d15bd2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions players/davidk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def n_hit_killables(opponents)

# go through all players other than self and build up some hash maps that can be used
# for picking an opponent to attack
def gang_score_and_aggro
opponents = Game.world[:players].select {|p| p.to_s != "david karapetyan"} # find enemies
def gang_score_and_aggro(opponents)
g_score = Hash.new(0)
predator_prey_relation = Hash.new([])
opponents.each do |p|
Expand All @@ -73,7 +72,7 @@ def killable_opponent
# find people we could potentially kill
possible_opponents = n_hit_killables(all_opponents)
# compute some metrics and relations to be used in our strategy
gang_score, aggro = gang_score_and_agrro
gang_score, aggro = gang_score_and_aggro(all_opponents)
# see if only one perseon is attacking us and our health is less than 80
# and rest if that's true. the reason is that we can mitigate health loss
# in this case at the expense of more experience points. we last longer but
Expand Down

0 comments on commit 0d15bd2

Please sign in to comment.