Permalink
Browse files

fixed a typo

  • Loading branch information...
1 parent cd7090b commit 0d15bd24e08ca0cc261dfbea1afb36ec51ebfe8b david karapetyan committed Apr 14, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 players/davidk.rb
View
@@ -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|
@@ -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

0 comments on commit 0d15bd2

Please sign in to comment.