Compare commits
No commits in common. "main" and "v1.0" have entirely different histories.
10
README.md
10
README.md
|
@ -50,14 +50,8 @@ Shuffles the current deck of cards in random order
|
||||||
|
|
||||||
## Running
|
## Running
|
||||||
|
|
||||||
You can navigate to [the releases](https://git.fosscat.com/n8r/genius_deck/releases) to download a prebuilt
|
You can navigate to the releases to download a prebuilt binary for your platform, or you can run it locally
|
||||||
binary for your platform, or you can run it locally yourself with Zig:
|
yourself with Zig.
|
||||||
|
|
||||||
```sh
|
|
||||||
zig build run
|
|
||||||
# Or for running with params
|
|
||||||
zig build run -- -h # help menu
|
|
||||||
```
|
|
||||||
|
|
||||||
You will need to download Zig 0.13.0 from Zig's [releases page](https://ziglang.org/download/), or from your
|
You will need to download Zig 0.13.0 from Zig's [releases page](https://ziglang.org/download/), or from your
|
||||||
package manager. If you use Nix flakes, a working config with direnv is already present in the repository.
|
package manager. If you use Nix flakes, a working config with direnv is already present in the repository.
|
||||||
|
|
|
@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
// Prefer small size binaries for optimization
|
// Prefer small size binaries for optimization
|
||||||
const optimize = b.standardOptimizeOption(.{});
|
const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseSmall });
|
||||||
|
|
||||||
const exe = b.addExecutable(.{
|
const exe = b.addExecutable(.{
|
||||||
.name = "genius_deck",
|
.name = "genius_deck",
|
||||||
|
|
|
@ -74,10 +74,10 @@ pub fn bufPrintCard(card: Card, buffer: []u8, options: bufPrintCardOptions) []co
|
||||||
|
|
||||||
pub fn suitToIcon(s: Suit) []const u8 {
|
pub fn suitToIcon(s: Suit) []const u8 {
|
||||||
return switch (s) {
|
return switch (s) {
|
||||||
.Spades => "♠",
|
.Spades => "",
|
||||||
.Hearts => "❤",
|
.Hearts => "",
|
||||||
.Clubs => "♣",
|
.Clubs => "",
|
||||||
.Diamonds => "♦",
|
.Diamonds => "",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user