Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77c81ba
commit 6b7bc9d
Showing
4 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
TicTacToe with Flask, Reactjs, Flux, and Redis | ||
# TicTacToe with Flask, Reactjs, Flux, and Redis | ||
|
||
A simple tic tac toe game built with Flask, with Flux and Reactjs on the frontend, and Redis to maintain the state of the game. | ||
|
||
## Setting it up on your Environment: | ||
|
||
1. Clone the repo, | ||
2. Make sure you have Flask installed | ||
3. In the root directory, run `pip install -r requirements.txt` | ||
4. In the root directory, run `npm install` | ||
5. In the root directory, run `bower install` | ||
6. Start the app by running start.sh: `sh start.sh` | ||
|
||
## Some questions perhaps? | ||
|
||
### Why not just have everything on the client side without Flask or Redis? | ||
A: The server determines the next move for the AI and also maintains the state of the game. This ensures that the player can't cheat their way to a win by modifying anything on the front end. | ||
|
||
### Why Flux? | ||
A: Because it's a nice way to maintain the flow of dynamic data throughout the game. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.