Talk:15 puzzle game: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 20: Line 20:
When you complete the javascript game, the alert shows without the last move updated. Is there a way to update the screen before the alert? [[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 17:12, 12 December 2017 (UTC)
When you complete the javascript game, the alert shows without the last move updated. Is there a way to update the screen before the alert? [[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 17:12, 12 December 2017 (UTC)
: Sure, though fixing that here won't fix the off-site implementation. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 17:33, 12 December 2017 (UTC)
: Sure, though fixing that here won't fix the off-site implementation. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 17:33, 12 December 2017 (UTC)
:: Excellent, thanks. [[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 18:14, 12 December 2017 (UTC)

Revision as of 18:14, 12 December 2017

task clarification

I assume the task is to implement a computer program to

  •   simulate playing the 15-game (puzzle)
  •   generate a random start position
  •   prompt the user for which piece to move
  •   validate if the move is legal (possible)
  •   display the game (puzzle) as pieces are moved
  •   announce when the puzzle is solved
  •   possibly keep track of the number of moves


Should the initial (random) puzzle position be a winnable puzzle?   -- Gerard Schildberger (talk) 07:30, 10 April 2016 (UTC)

Yes. --Rdm (talk) 12:46, 10 April 2016 (UTC)

Javascript query

When you complete the javascript game, the alert shows without the last move updated. Is there a way to update the screen before the alert? Pete Lomax (talk) 17:12, 12 December 2017 (UTC)

Sure, though fixing that here won't fix the off-site implementation. --Rdm (talk) 17:33, 12 December 2017 (UTC)
Excellent, thanks. Pete Lomax (talk) 18:14, 12 December 2017 (UTC)