August 2018
Beginner
334 pages
10h 19m
English
We will implement two core classes for modeling the pieces and the board, respectively. This is a long process, so it is advised to read each step carefully:
using UnityEngine; using System.Collections; using System.Collections.Generic;
public enum PieceColor
{
WHITE,
BLACK
};
public enum PieceType
{
MAN,
KING
};
public class PieceDraughts : MonoBehaviour
{
public int x;
public int y;
public PieceColor color;
public PieceType type;
// next steps here
}
public void Setup(int x, int y, ...
Read now
Unlock full access