Tic-Tac-Toe with a Python/Flask server back-end for controlling the program logic and processing requests, and an HTML/CSS/Javascript/React front-end for the game's UI. Amatuer programmers/contributers are welcome to create or resolve issues/features!
To play the game please visit here!
- Ensure
python3andpip3module installer is installed on the user's local machine - Fork/clone this repo
- Install NodeJS (stable release) via different operating system instructions
- In the repository folder named
tic-reactrun the commandnpm install.to install dependencies - Ensure you are using the most recent version of NodeJS with the command
npm updatein the folder namedtic-react. - Run the "front-end" server with the command
npm startin the folder namedtic-react
Installation instructions for running the back-end of the program for testing/debugging (Flask web server):
- In the root reposity,
tictactoe, install Flask and Flask CORS and py-TTT withpip install tic-back - Run the back-end with
python __main__.pyorpython3 __main__.py
Certain browsers will not allow communication between the React app and Flask server if they are on different ports of the same localmachine (localhost). It is considered suspicious activity by the browser. As a hotfix, you can run Chrome (the reccomended browser for testing this application) with CORS features disabled. To run Chrome with command line arguments you can simply add chrome.exe to your environment variables/PATH, and in the terminal enter the command chrome --disable-web-security.
For further developer documentation, please consult the tictactoe\docs folder.