August 2018
Beginner
334 pages
10h 19m
English
First, we need to create a new type of movement for this particular case called MoveDraughts:
using UnityEngine;
using System.Collections;
public class MoveDraughts : Move
{
public PieceDraughts piece;
public int x;
public int y;
public bool success;
public int removeX;
public int removeY;
}
This data structure stores the piece to be moved, the new x and y coordinates if the movement is a successful capture, and the position of the piece to be removed.
Read now
Unlock full access