~rabbits/orca-toy

3665745e1a7d0eea81d0adf63b442943fc5d0f5c — neauoire 10 months ago 97eaa45
*
3 files changed, 18 insertions(+), 6 deletions(-)

M abflm-result.orca
M build.sh
M toy.c
M abflm-result.orca => abflm-result.orca +16 -4
@@ 1,10 1,22 @@
.A.aA..AaaAa1AA2AZ
.0..a..a..k..B..1.
.0..a..a..k.......
.B.aB..BaaBa1BA2BZ
.0..a..a..0..9..X.
.0..a..a..0.......
.F.aF..FaaFa1FAzFZ
.*........*.......
.L.aL..LaaLa1LAzLZ
..........a..1..Z.
..........a.......
.M.aM..MaaMa1MAzMZ
.0..0..0..s..A..1.
.0..0..0..s.......

234234234234344444
050050050050000000
234234234234344444
050050050050000000
234234234234344444
050050050050000000
234234234234344444
050050050050000000
234234234234344444
050050050050000000


M build.sh => build.sh +1 -1
@@ 5,7 5,7 @@ clang-format -i toy.c
rm -f ./toy

# GNU/Linux
cc -std=c89 -DDEBUG -Wall -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined -o toy toy.c
# cc -std=c89 -DDEBUG -Wall -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined -o toy toy.c

# GNU/Linux
cc toy.c -std=c89 -O2 -DNDEBUG -g0 -s -Wall -o toy

M toy.c => toy.c +1 -1
@@ 543,7 543,7 @@ run(Grid *g)
		char c = g->data[i];
		x = i % g->w;
		y = i / g->w;
		if(g->lock[i] || c == '.')
		if(c == '.' || g->lock[i])
			continue;
		if(cilc(c) && !bang(g, x, y))
			continue;