Requesting a new function for this forum

2 posts / 0 new
Last post
minglw
Offline
Joined: 2005-10-20
Requesting a new function for this forum

Bjorn, thanks for adding the new "code" tag allow xsb-format levels to be displayed graphically.

While reading some Chess forums, I found some of them have a
nice chess board embedded on posts. Each embedded Chess board shows a different chess game. They all have VCR-like buttons associated with each board and allow users to re-play the game to watch the moves.

The poster can post a board and include all the chess moves and other users will see the chess board.

And so I thought:

Since we have the "code" now to display levels, how about adding a "solution" (or "replay") tag to allow users to see the solution ?

The user would include something like the following:

[solution] llllllllluurrurrRRRurDDDuulllllldlluRRll
dddrrrrrrrRuuulllldLLLDldRRRRRRllllluurr
rurrdLLLLulDDldRRRRRlllluurrrurrrrdddddl
lllldLurrrdLLurrrrdLLurrrrdLLulllllllddr
UluRRRRRRRdrUUUUULLLLLLulDDldRRRRllluurr
rrrruurDrdLddddllllldLullddrUluRRRRRRRdr
UUUUULLLLLLulDDldRRRlluurrrrrruurDrdLddd
dllldLLLullddrUluRRRRRRRdrUUUUULLLLLLulD
DldRRluurrrrrruurDrdLLLLLLLulDDldRuuulDD
uurrRRRRdrruulDrdLLLLLLulDDurrrrrrrddddd
lLLLLLullddrUluRRRRRRRdrUU
[/solution]

After the post is posted, other users will see
a graphical level displayed (similar to what the "code" tag displays now)
with some VCR-like controls to go-back and forth on the moves.

NOTE: I am not asking for an on-line version of sokoban to play. Just a small module to replay the moves. (the chess one is coded as an applet)

Thanks!

bjorn
Offline
Joined: 2013-04-18

Nice idea! I will give it some thought.

Björn