Releases: BrownCoatJustice/combin
Releases · BrownCoatJustice/combin
🥳 v0.0.1-indev 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.
- Generate all possible binary combinations of a given size
-
Customizable Binary Characters:
- Replace default binary characters (
0
and1
) with user-defined characters.
- Replace default binary 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 replace0
(e.g.,X
).[bin1]
(Optional): Custom character to replace1
(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
andbin1
.
- Efficiently generates all combinations by recursively adding
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.