module P4
  module Chips
    class Player
      def initialize player_id
        @player_id= player_id
      end

      def gain chips
        Chips.send :fix_player, @player_id, chips
      end

      def lose chips
        Chips.send :fix_player, @player_id, -chips
      end

      def reserve game_id, chips
        Chips.send :reserve, game_id, @player_id, chips
      end
    end
  end
end

module P4
  module Chips
    class Player
      def initialize player_id
        @player_id= player_id
      end

      def gain chips
        Chips.send :fix_player, @player_id, chips.abs
      end

      def lose chips
        Chips.send :fix_player, @player_id, -chips.abs
      end

      def reserve game_id, chips
        Chips.send :reserve, game_id, @player_id, chips.abs
      end
    end
  end
end

Add .abs to P4::Chips::Player methods
Add .abs to P4::Chips::Player methods
