1.- Install Service Fabric SDK and Visual Studio 2015. More information on how to set up your environment here
2.- Publish the QLearningAPI and QLearningServiceFab apps to a Service Fabric cluster.
3.- Call the QTrainer API to start the training process for all the initial transitions. 1 to 9 for the game of tic-tac-toe.
http://CLUSTER:PORT/api/qtrainer/start/1
...
http://CLUSTER:PORT/api/qtrainer/start/9
Note The training might take more than 10 minutes to complete.
4.- Configure the client app to point to your QTrainer API. In App.cs locate and modify the following with your server and port information:
public static Uri QServiceUrl = new Uri("http://CLUSTER:PORT/api/qtrainer/nextvalue/");