﻿1.<indent=20px>Unzip the <b>SFS2X-TocTacToe.zip</b> file contained in this project to any destination folder on your hard drive.</indent>
2.<indent=20px>Go to your SmartFoxServer 2X installation folder.</indent>
3.<indent=20px>Under the <i>/SFS2X/extensions</i> folder, create a subfolder called <i><b>TicTacToe</b></i>.</indent>
4.<indent=20px>Copy the content of folder <i>/Extension-Java/deploy</i> from the unzipped file to the server's <i>/SFS2X/extensions/TicTacToe</i> folder you just created.</indent>
5.<indent=20px>Start SmartFoxServer 2X.</indent>
6.<indent=20px>Open the <i>Login</i> scene contained in this project's <i>Scenes</i> folder.</indent>
7.<indent=20px>Click on the <b>Play</b> button.</indent>
This demo features a server-side Extension available in two versions: Java and JavaScript.
Step 3 and 4 above describe how to deploy the <b>Java Extension</b>, which is the default one for this demo. The Extension source code is available under the <i>/Extension-Java/src</i> folder of the unzipped file.
In order to use the <b>JavaScript Extension</b>, replace the following steps above:
3.<indent=20px>Under the <i>/SFS2X/extensions</i> folder, create a subfolder called <i><b>TicTacToe-JS</b></i>.</indent>
4.<indent=20px>Copy the content of folder <i>/Extension-JS</i> from the unzipped file to the server's <i>/SFS2X/extensions/TicTacToe-JS</i> folder you just created; then switch the EXTENSION_ID and EXTENSION_CLASS constants at the top of the <i>LobbySceneController</i> script in this project's <i>Scripts/Controllers</i> folder.</indent>