
Write a program that draws an initial grid from commands, then simulates a cellular life board.
printf 'rpdd' | ./life_board_draw 3 3 0Expected result
.@.\n.@.\n.@.\nFor your own tracking. Tests grade your code.
printf 'rpdd' | ./life_board_draw 3 3 1Expected result
...\n@@@\n...\nExpected files
life_board_draw.cAllowed functions
atoireadwriteputcharmalloccallocreallocfree
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that draws an initial grid from commands, then simulates a cellular life board.
printf 'rpdd' | ./life_board_draw 3 3 0Expected result
.@.\n.@.\n.@.\nFor your own tracking. Tests grade your code.
printf 'rpdd' | ./life_board_draw 3 3 1Expected result
...\n@@@\n...\nExpected files
life_board_draw.cAllowed functions
atoireadwriteputcharmalloccallocreallocfree
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.