Pixel · Easy CodeFree
Please Keep This Side Up
A courier keeps turning a parcel that holds a tiny crystal mine. With every turn, the crystals slide until a wall, a divider or another crystal stops them. How does the box look on delivery?
Draw the box after the last command.
Every row must be exactly right.
R C, then R rows of C characters: . empty, # divider, C crystal.K, then one line of K commands, each N, E, S or W (up, right, down, left).R rows of C characters: the box after the last command.R, C ≤ 20, 1 ≤ K ≤ 505 6 .C..#. ..#..C C..... .#.C.. ...C.# 6 SENWES
....#. ..#..C .....C .#...C ...CC#
Sign in to play. It is free.
Sign in