0
Answer

swapping array element in console application

Steve Olaleye

Steve Olaleye

10y
1k
1
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
Next Recommended Forum