Kenny Yip Coding tutorial coding challenge - convert completed result to an avengers 5 x 5 slide puzzle.
-
made it better for mobile
-
tough to confirm puzzle is correct - imgOrder cannot be compared to ids
-
puzzle is correct but you can still continue to move puzzle pieces
-
if you could check for a win, you could lock the puzzle pieces by removing all event listeners
-
making the puzzle 5 x 5 makes it difficult to set a imgOrder that doesn't require a ton of moves to complete - tougher to manually test
-
objected oriented programming is better for games since you can store the references you need to faciliate comparisons
-
need to look if you really need to declare all drag listeners or whether you can omit the ones you don't use - (in this game) dragLeave
-
Stack Overflow - compare arrays in js
-
Stack Overflow - enumerate all of the html ids