August 2018
Beginner
334 pages
10h 19m
English
We will build two classes to represent game-tree with the help of the following steps:
using UnityEngine;
using System.Collections;
public abstract class Move
{
}
using UnityEngine;
using System.Collections;
public class Board
{
protected int player;
//next steps here
}
public Board()
{
player = 1;
}
public virtual Move[] GetMoves()
{
return new Move[0];
}
public virtual Board MakeMove(Move m)
{
return new Board();
}
Read now
Unlock full access