Skip to content

Releases: BrownCoatJustice/combin

🥳 v0.0.1-indev Release 🥳

19 Nov 10:47
84f3df5
Compare
Choose a tag to compare
Pre-release

Version 0.0.1-INDEV - November 2024

Initial Release

  • Binary Combination Generation:

    • Generate all possible binary combinations of a given size n (up to 16 bits).
    • Combinations are generated recursively and can be printed to the console, saved to a file, or stored in memory.
  • Customizable Binary Characters:

    • Replace default binary characters (0 and 1) with user-defined characters.
  • Flexible Output Options:

    • Print combinations to the console.
    • Save combinations to a user-specified file.
    • Store combinations in an ArrayList for further processing.
  • Error Handling:

    • Handles invalid input (e.g., invalid size or characters).
    • Logs file operation errors.

Features:

  • Command-line Arguments:

    • <size> (Required): The size of the binary combinations (1 ≤ n ≤ 16).
    • [bin0] (Optional): Custom character to replace 0 (e.g., X).
    • [bin1] (Optional): Custom character to replace 1 (e.g., Y).
    • [filename] (Optional): Output file to save the combinations.
    • [console] (Optional): If provided, prints results to the console.
  • Recursive Combination Generation:

    • Efficiently generates all combinations by recursively adding bin0 and bin1.

Example Commands:

  • Print binary combinations of size 3 to the console:
    java Combin 3 console
  • Generate combinations of size 4 using custom characters and save to a file:
    java Combin 4 X Y output.txt

Known Issues:

  • None at the moment.

Upcoming Features:

  • Potential for additional output formats (e.g., CSV).
  • Optimizations for generating larger combinations beyond 16 bits.