From 9036848168b709e0a6e5d1532ee9e701c6486303 Mon Sep 17 00:00:00 2001 From: Cameron Blankenbuehler Date: Tue, 22 Aug 2023 19:06:17 -0400 Subject: [PATCH] Add collapsible sections to README usage section --- README.md | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index bcebb3e..56cc68e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ A solver for the popular word game Boggle. pip install boggler ``` -To use the script to solve a particular Boggle board configuration, you'll need to do a few things +# Setup +To use the script to solve a Boggle board, you'll need to do a few things first. 1. Create `.csv` of the board state like so: Here is an example `board.csv`. Note the orientation of the board does not matter. @@ -17,7 +18,7 @@ To use the script to solve a particular Boggle board configuration, you'll need d,f,e,y n,m,e,qu ``` -2. Find a dictionary wordlist file or create your own +2. Find or create a dictionary wordlist file or create your own The dictionary wordlist should have each word on a single line like so ```console @@ -57,9 +58,9 @@ To use the script to solve a particular Boggle board configuration, you'll need ``` # Usage -### CLI usage -```console -$ poetry run boggler --help +
+

CLI usage

+
$ poetry run boggler --help
 usage: boggler [-h] [-f FORMAT] [-p] [-s] [-d] board wordlists [max_word_length]
 
 Boggle board game solver
@@ -79,11 +80,12 @@ options:
                         to-right as given in the board file.
   -d, --dedup           Remove duplicates from word-only output. Note that de-duplication does not preserve the original order of the output, so it is
                         recommended to also use the sort option when de-duplicating.
-```
+
+
-### Example -```console -$ poetry run boggler ./boggler/boards/b1.csv boggler/wordlists/scrabble_2019/ +
+

Example board solve

+
$ poetry run boggler ./boggler/boards/b1.csv boggler/wordlists/scrabble_2019/
 
 BOARD
 +---------------+
@@ -380,12 +382,13 @@ Starting @ (2,
 │ ah     │ [(3, 3), (3, 2)]                                 │
 │ ahs    │ [(3, 3), (3, 2), (2, 3)]                         │
 ╰────────┴──────────────────────────────────────────────────╯
-```
+
+
+
# Build Navigate to the project root folder and run the following. Run `poetry build` -``` # License The included [wordlists](src/boggler/wordlists) are covered by their respective licenses. All other files MIT © Cameron Blankenbuehler