/plcte

back to the future based programming

Primary LanguageRuby

"Back to the Future"-based Programming

  • Install Ruby 2.4
  • Install pry gem: gem install pry

example.rb

  • Run ruby example.rb
  • Now a REPL should start. You can call some methods of the test object (e.g. test.method1()).

pacman.rb

  • Run ruby pacman.rb
  • Execute p.eat_dot or p.hit_ghost several times and see what happens.