Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed a typo

  • Loading branch information...
commit 0d15bd24e08ca0cc261dfbea1afb36ec51ebfe8b 1 parent cd7090b
david karapetyan authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 players/davidk.rb
5 players/davidk.rb
@@ -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 =[:players].select {|p| p.to_s != "david karapetyan"} # find enemies
+ def gang_score_and_aggro(opponents)
g_score =
predator_prey_relation =[])
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
Please sign in to comment.
Something went wrong with that request. Please try again.