How it works...

We have created the stepping stones for the next algorithms. The Board class works as a node to represent the current game state, and the Move class to represent an edge. When the GetMoves function is called, we model the function for getting the edges to reach the neighbors of the current game state.

Get Unity 2018 Artificial Intelligence Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.