Implementing the game logic for our SlidingTiles Game
In this section, we will start by creating and implementing the logic needed to complete our SlidingTiles
game. We will start by creating and implementing a GameTile
Interface and Class, which will be used to create and store each of our GameTiles.
We will then move on to implementing the required code, as well as the necessary instance method implementations that will make up and complete our game.
Creating and implementing the GameTile Interface class
As explained in the introduction to this section, we will start by creating the GameTile
interface class for our SlidingTiles game, which will be used to create instances of each game tile that will be displayed in the gameboard
View control we added to our ViewController contained in our Storyboard.
Let's start by creating the IGameTile
interface for our SlidingTiles
app by performing the following steps:
- Ensure that the
SlidingTiles
solution is open in the Visual Studio for Mac IDE. - Next,...