Hello everyone, I decided to make 2048 for my final project in my c++ class, and I need some advice before I start getting into the nitty gritty. I currently have a 4x4 array with all the values initialized to 0 as the game board and I have a couple questions.
a) How can I get a random index in the array and put a 2 in it?
b) What would the algorithm look like for moving up down left right?