
GameManager stores a 2D array named pieces that tracks where the pieces are located on the board. It’s a singleton, so it’s easy for other classes to call it.

It also contains logic to determine the valid moves in the game. Piece.cs: The base class that defines enumerations for any instantiated pieces.It also holds the direction of play for pieces where direction matters, such as pawns. Player.cs: Keeps track of the player’s pieces, as well as the pieces a player has captured.Geometry.cs: Utility class that handles the conversion between row and column notation and Vector3 points.This component also handles the highlighting of individual pieces. Board: Keeps track of the visual representations of the pieces.Scripts: Contains the components that have already been attached to objects in the Hierarchy.Materials: Includes materials for the chess board, the chess pieces and the tile overlays.Prefabs: Includes the board, the individual pieces and the indicator squares that will be used in the move selection process.These objects already have scripts attached. You’ll see a Board object representing the game board and an object for the GameManager. Open the Main scene in the Scenes folder. However, this version is 3D to mimic sitting at a table playing with your friend. Open the starter project in Unity to get going.Ĭhess is often implemented as a simple 2D game. You can find a link at the top and the bottom of this page. If you want to skill up in C#, the Beginning C# with Unity Screencast series is a great place to start.ĭownload the project materials for this tutorial. The purchase is restorable under the same Apple ID.Note: You should have some familiarity with Unity and the C# language.

The game is free to download so that you can test whether your device can handle the heavy graphics before paying for it.


Realistic water and destruction effects.
