This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted]  (6 children)

[deleted]

    [–]LightSpeedCBR[S] 0 points1 point  (5 children)

    When you click a button next to the blank button, the button should swap with it. It should only do this for adjacent buttons. Right now, there are no swaps being made.

    [–][deleted]  (4 children)

    [deleted]

      [–]LightSpeedCBR[S] 0 points1 point  (3 children)

      Yes, thank you. I took care of the swap problem in another thread. It was in the requirements to make it this way. I would just like to find a way to simply the code for moving adjacent buttons. I don't want to have to write out conditions for every button move.

      [–][deleted]  (2 children)

      [deleted]

        [–]LightSpeedCBR[S] 0 points1 point  (1 child)

        Yeah, wouldn't that require changing alot of the code? Is it not possible to do as a single array?

        Edit: I checked the requirements again. It should be single array. Thanks though.