Skip to content

amerritt14/advent2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Clone the repo and cd into the directory.

Using the runner

Load the runner into an irb instance

irb -r ./runner.rb

Using Pry

Install the pry gem, then load the runner into the pry instance.

gem install pry
pry -r ./runner.rb

From irb you can now call any of the day/part combinations with their test inputs

$irb> runner = Runner.new(day: 1, part: 1, test: true)
$irb> runner.perform
 ==> 7

If you make changes to the solution.rb file that you're working on, you can reload it without exiting the IRB instance.

$irb> runner.reload
  ==> true

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages