-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04c1c4a
commit 9eee38d
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# match-3-calculator | ||
A match-3 combination and possible combination calculator written in Rust 🦀 for learning purposes. | ||
|
||
# Running it | ||
`cargo run` | ||
|
||
# Running it (Release mode) | ||
`cargo run --release` | ||
|
||
# Output sample | ||
```bash | ||
Time to generate board: 261.50µs | ||
🟥🟥🟦🟥🟨🟪🟨🟦 | ||
🟥🟨🟩🟦🟩🟩🟦🟦 | ||
🟪🟥🟪🟦🟦🟥🟪🟦 | ||
🟪🟦🟩🟩🟪🟩🟪🟩 | ||
🟨🟥🟦🟥🟨🟩🟨🟦 | ||
🟪🟪🟥🟥🟦🟪🟪🟪 | ||
🟪🟩🟩🟪🟪🟨🟨🟪 | ||
🟪🟥🟦🟥🟩🟩🟨🟦 | ||
Time to find combinations: 21.20µs | ||
Color: 🟪 | Matches: (5, 5)(6, 5)(7, 5) | ||
Color: 🟪 | Matches: (0, 5)(0, 6)(0, 7) | ||
Color: 🟦 | Matches: (7, 0)(7, 1)(7, 2) | ||
Contains possible combinations. | ||
Time to find possible combinations: 48.70µs | ||
```` |