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
# Check if a path is given | |
if [[ -z $1 ]]; then | |
line="Provide a path !!!!" | |
echo -e "\e[01;31m$line\e[0m" >&2 # Print in Red to Stderr | |
exit # Stop file execution | |
fi | |
# Check if the given path is a Directory | |
ERR=$(cd $1 2>&1) |
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
# --------------------- Variable -------------------------- | |
game_board = [" - ", " - ", " - ", " - ", " - ", " - ", " - ", " - ", " - "] | |
players = [" X ", " O "] | |
winner = "" | |
game_still_on = True |