# File lib/libpplayer.rb, line 96 def to_potential_player friend_pull = @genome[0, 4].gray_decode.to_decimal.to_f / 4 enemy_pull = @genome[4, 4].gray_decode.to_decimal.to_f / 4 base_pull = @genome[8, 4].gray_decode.to_decimal.to_f / 4 safe_bonus = @genome[12, 4].gray_decode.to_decimal capture_bonus = @genome[16, 4].gray_decode.to_decimal Potential_player.new({:friend_pull => friend_pull, :enemy_pull => enemy_pull, :base_pull => base_pull, :safe_bonus => safe_bonus, :capture_bonus => capture_bonus}) end