Skip to content

Rubies crashes on "self.freeze" input #18

@ksaveljev

Description

@ksaveljev
Write ruby code to find the following value (or enter NEW for a new challenge):
415

[1] rubies(main)> self.freeze
=> #<Rubies::Game:0x007ffe848737c0>

/usr/local/lib/ruby/gems/2.1.0/gems/rubies-0.1.1/lib/rubies/game.rb:80:in `itswrong': can't modify frozen Rubies::Game (RuntimeError)
    from /usr/local/lib/ruby/gems/2.1.0/gems/rubies-0.1.1/lib/rubies/game.rb:158:in `play_round'
    from /usr/local/lib/ruby/gems/2.1.0/gems/rubies-0.1.1/lib/rubies/game.rb:174:in `game'
    from /usr/local/lib/ruby/gems/2.1.0/gems/rubies-0.1.1/bin/rubies:5:in `<top (required)>'
    from /usr/local/bin/rubies:23:in `load'
    from /usr/local/bin/rubies:23:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions