| ... | @@ -35,27 +35,4 @@ test { | ... | @@ -35,27 +35,4 @@ test { |
| 35 | // a5 22 a6 8e ea 9a 39 e9 6e 95 c4 f3 af 9c 66 4a | 35 | // a5 22 a6 8e ea 9a 39 e9 6e 95 c4 f3 af 9c 66 4a |
| 36 | // 30 68 2b d1 03 dd b7 00 ec 11 | 36 | // 30 68 2b d1 03 dd b7 00 ec 11 |
| 37 | _ = &grid; | 37 | _ = &grid; |
| 38 | | | |
| 39 | const bg_black = "\x1b[40m"; | | |
| 40 | const bg_white = "\x1b[47m"; | | |
| 41 | const bg_blue = "\x1b[44m"; | | |
| 42 | const bg_reset = "\x1b[49m"; | | |
| 43 | | | |
| 44 | const fg_black = "\x1b[30m"; | | |
| 45 | const fg_white = "\x1b[37m"; | | |
| 46 | const fg_reset = "\x1b[39m"; | | |
| 47 | | | |
| 48 | for (0..grid.size) |y| { | | |
| 49 | for (0..grid.size) |x| { | | |
| 50 | std.debug.print("{s}", .{if (grid.hasSet(x, y)) | | |
| 51 | if (grid.isSet(x, y)) | | |
| 52 | bg_black ++ fg_black ++ "██" | | |
| 53 | else | | |
| 54 | bg_white ++ fg_white ++ " " | | |
| 55 | else | | |
| 56 | bg_blue ++ fg_white ++ " -"}); | | |
| 57 | } | | |
| 58 | std.debug.print("{s}", .{fg_reset ++ bg_reset}); | | |
| 59 | std.debug.print("\n", .{}); | | |
| 60 | } | | |
| 61 | } | 38 | } |