CrusadexGenerator 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CrusadexGenerator --version 1.0.0                
NuGet\Install-Package CrusadexGenerator -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CrusadexGenerator" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CrusadexGenerator --version 1.0.0                
#r "nuget: CrusadexGenerator, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CrusadexGenerator as a Cake Addin
#addin nuget:?package=CrusadexGenerator&version=1.0.0

// Install CrusadexGenerator as a Cake Tool
#tool nuget:?package=CrusadexGenerator&version=1.0.0                

CrusadexGenerator

Engine for generating clue-less crossword-style puzzle grids called crusadex, cruzadex, or fill-in crosswords.

Installing via NuGet

Install-Package CrusadexGenerator

How To Use

Generation

This will give you a List<CrusadexCell>. Each CrusadexCell has three properties:

  • Column (string) The column of the cell ("A", "B" ... "AA", "AB", etc.)
  • Row (int) The row of the cell (1, 2 .... 99, 100, etc.)
  • Selected (boolean) Whether or not this cell is selected in the puzzle
var options = new CrusadexGeneratorOptions
{
    // The length of the y-axis
    Height = 10,    // default: 10

    // The length of the x-axis
    Width = 10,     // default: 10

    // The number of 2x2 squares in the puzzle
    // If null/unset no constraint will be used
    MaxCubeJoints = 2,  //default: null

    // Constraint for specific word lengths
    // If null/unset no constraint will be used
    MaxTwoLetterWords = 2,      // default: null
    MaxThreeLetterWords = 2,    // default: null

    // General word length constraints
    MaxWordLength = 7,  // default: 7
    MinWordLength = 2,  // default: 2

    // Constraints for the total number of words in the puzzle
    MaxWords = 5,   // default: 5
    MinWords = 2    // default: 2
};

var generator = new CrusadexGenerator(options);
var result = generator.Generate();

Checking

You can use the CrusadexCellListHelpers.GetHtmlStringTable(cellList) class to check your output:

var options = new CrusadexGeneratorOptions();
var generator = new CrusadexGenerator(options);
var cellList = generator.Generate();

var htmlOutput = CrusadexCellListHelpers.GetHtmlStringTable(cellList);

That will give you an HTML string that you can save as an HTML file or plug into any HTML visualizer. Here are some examples (using https://html.onlineviewer.net/):

10x10

15x15

8x8

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 522 2/28/2022
1.0.1 439 2/21/2022
1.0.0 433 2/21/2022