Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed broken code from dank.rb

  • Loading branch information...
commit c833b2742d4e4bd360bfb0ff8ff03ccaef2e9119 1 parent 66e2eda
david karapetyan authored
Showing with 1 addition and 17 deletions.
  1. +1 −17 players/dank.rb
View
18 players/dank.rb
@@ -58,7 +58,7 @@ def set_attack_targets
@current_friends = friends
attackers = ATTACKER_POOL
- (friends + secure_bots).each_with_index do |friend,index|
+ (friends).each_with_index do |friend,index|
if @round_count > RISKY_ROUNDS && secure_bots.any?
new_target = secure_bots.first
else
@@ -106,27 +106,11 @@ def boss_lacks_experience?
def prepare_friendlies
@game_underway = true
@minion = false
- @super_secret_code = discover_secure_bot_secret_code
friends.each do |friend|
- friend.trade :set_super_secret_code, @super_secret_code
friend.trade :begin_game
end
end
- def discover_secure_bot_secret_code
- discovery_bot = secure_bots.first
- initial_target = enemies.first
- secret_code = nil
- (0..1_000_000).map do |possible_key|
- success = discovery_bot.set_target( possible_key, 0, initial_target )
- if success
- secret_code = possible_key
- break
- end
- end
- secret_code
- end
-
def friends
Game.world[:players].select { |p| p.to_s =~ /(Minion|Dan Knox)/ && p != self }
end
Please sign in to comment.
Something went wrong with that request. Please try again.