In this section, we will look at implementing the ShuffleBoardTiles_Clicked instance method in our ViewController class. The ShuffleBoardTiles_Clicked instance method will be responsible for randomly shuffling our GameTiles on the game board, which, if you remember when we were constructing our user interface for our game, we created an event for with our Shuffle Tiles button.
We will use the Random class to generate a random number that will be used to specify a new location to place each of our GameTile images on the game board.
Let's start by modifying the ViewController class for our SlidingTiles app by performing the following steps:
- Ensure that the ViewController.cs file is currently ...