2022-12-10 20:49:42 +00:00
|
|
|
function inc() {
|
2023-01-02 11:35:09 +00:00
|
|
|
i = (c++%40)
|
|
|
|
printf "%s", (i==x||i==x+1||i==x+2) ? "█" : " "
|
|
|
|
printf "%s", (i==39) ? "\n" : ""
|
2022-12-10 20:49:42 +00:00
|
|
|
}
|
|
|
|
{ inc() }
|
|
|
|
$1 == "addx" {
|
|
|
|
inc()
|
2023-01-02 11:35:09 +00:00
|
|
|
x += $2
|
2022-12-10 20:49:42 +00:00
|
|
|
}
|