diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..fd2a018 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.1.0 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6429e71 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +install: + curl https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt -o dictionary.txt + touch bad-in-dictionary.txt + bundle install diff --git a/README.md b/README.md new file mode 100644 index 0000000..bdf22e0 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# wordle-solver + +Mess around with solving Wordle boards in horribly inefficent ways! + +## Pre-requisites + +* Ruby >= 2.7.5 + * bundler +* Chrome + +## Setup + +1. `make install` + * Or manually run the commands for installation in the `Makefile` +2. `bundle install` + +## Running + +1. `ruby driver.rb` + * Watch it go! + +`Ctrl+C` to exit. diff --git a/lib/game.rb b/lib/game.rb index 3ab2b56..49349b1 100644 --- a/lib/game.rb +++ b/lib/game.rb @@ -1,4 +1,4 @@ -require "debug" +require "debug" if RUBY_VERSION.to_i >= 3 require "logger" require_relative "nonexistant_guess_error"