t3C
and t3
are Bash script (see Wikipedia:Bash_(Unix_shell) for more info) implementations of the usual Tic-Tac-Toe (or Noughts-and-Crosses) paper-and-pencil game.
t3C
is for x-terminals that support color while t3
is for x-terminals that don't support color. Both bash scripts are two-player implementations of tic-tac-toe.
To play: at the command line, within the directory containing the script, issue the command:
bash t3C
(or simply t3C
if the this script is on your path of executables, i.e., if echo $PATH
shows a list of directories that includes the directory containing the bash script t3C
. To make sure, you can copy these two bash scripts to your $HOME/.local/bin directory
then add the .local/bin
directory to your PATH
, e.g., at the command line PATH=$PATH:$HOME/.local/bin/
).
A screenshot (partly edited) of a t3C
tic-tac-toe game session is given below.
My sincerest gratitude to Brian Fox for Bash; Machtelt Garrels for the book Bash Guide for Beginners, Vivek Gite for the book Linux Script Shell Tutorial, and Steve Parker for the Unix/Linux Shell Cheatsheet; Eddie Köhler for Gifsicle, ImageMagick, and Dmitry Groshev, Mark Tyler, Xiaolin Wu et. al. for mtPaint. Much thanks, too, to the Debian Project for the Debian 8 (Jessie) GNU/Linux OS and GitHub for its generosity in providing space for this project.
tic-tac-toe by Justine Leon A. Uro is licensed under a Creative Commons Attribution 4.0 International License.
Based on a work at https://github.com/justineuro/tic-tac-toe