aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2024-06-13 01:11:11 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2024-06-13 01:11:11 -0500
commit2374e1f1a11d62ee579d25a39b24312a68e7387e (patch)
tree9063df7831bec2bdc4dfdb3782a080091aac05ef /src
parent849d278638769542a58b2b53f8c92f6045d135a0 (diff)
downloadparticle-sim-2374e1f1a11d62ee579d25a39b24312a68e7387e.tar.gz
Fixed printing ruleset to terminal
Diffstat (limited to 'src')
-rw-r--r--src/particle.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/particle.zig b/src/particle.zig
index 00eace7..e0cb789 100644
--- a/src/particle.zig
+++ b/src/particle.zig
@@ -20,15 +20,15 @@ pub fn ruleMatrix() [cfg.colorAmnt][cfg.colorAmnt]f32 {
/// Prints rules generated from ruleMatrix()
pub fn printRules(rules: [cfg.colorAmnt][cfg.colorAmnt]f32) void {
- std.debug.print("\n|{s:^6}", .{"Rules"});
+ std.debug.print("\n| {s:^7} ", .{"Rules"});
for (0..cfg.colors.len) |c|
- std.debug.print("| {s:^4} ", .{colorToString(c)});
+ std.debug.print("| {s:^7} ", .{colorToString(c)});
std.debug.print("|\n", .{});
for (rules, 0..) |row, i| {
- std.debug.print("| {s:^4} ", .{colorToString(i)});
+ std.debug.print("| {s:^7} ", .{colorToString(i)});
for (row) |col|
- std.debug.print("| {d:^4.1} ", .{col});
+ std.debug.print("| {d:^7.1} ", .{col});
std.debug.print("|\n", .{});
}