Steve Olaleye

Steve Olaleye

  • NA
  • 1
  • 991

swapping array element in console application

Jun 12 2014 11:28 AM
I'm writing a small puzzle console application
I've randomly generated nos from 1-9 and my array can display them randomly.
what I'm left with is to read key values(the keyboard arrow keys) to move and swap my nos in my array so that it will be serially arranged.
on succesfull arrangement, the player of my puzzle wins
please help me out!
a typical structure of my array could look like this below, when my project is running
5 7 1
6 3 2
8 4 9