From 217f3f94ee7f0da52a730c0a2e3ed315c4d4564f Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 28 Jan 2022 22:12:50 -0500 Subject: [PATCH] Add the least amount of documentation possible --- .ruby-version | 1 + Makefile | 4 ++++ README.md | 22 ++++++++++++++++++++++ lib/game.rb | 2 +- 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .ruby-version create mode 100644 Makefile create mode 100644 README.md 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"