Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Block sliding puzzle

Name: Anonymous 2010-11-20 18:25

I'm solving a sliding puzzle with BFS, and I'd like to practice doing things functionally. Any tips for layout and representation?

I'm storing the board state as an array of strings, one for each row, but the blocks can be of different sizes (1x1, 1x2, 2x1 and 2x2), which makes the code for moving a block pretty ugly.

Name: Anonymous 2010-11-20 18:29

>>2
You are clearly not a programmer. Go away.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List