This is a a classic game of Tic-Tac-Toe with a unique twist – it's designed to be inclusive and accessible to screen reader users!
Alternative One: npm
-
Clone this repository.
-
Go to your terminal and change the current directory to the one your clone is in.
cd /path/to/cloned/directory
-
Run
npm i
-
Create a .env file and add the following:
VITE_BASE_API=http://localhost:3001
. The port number (i.e. 3000) can be changed accordingly if needed. -
Run
npm run dev
to load your game UI. -
Follow the steps in the backend server repository to start your own backend server.
Note that the port in
VITE_BASE_API
(if using localhost) andHOST_PORT
should be the same number for the game to run. -
To play in multiplayer, simply change the
VITE_BASE_API
(in step 5) to any URI that is hosting the backend server in the same network. Play together with your friends in the same network through thisnpm
alternative! -
Enjoy!
Alternative Two: Netlify
- Go to Tic-Tac-to-the-Toe to run the game UI.
- Follow the steps in the backend server repository to start your own backend server.
Since this is a pre-release, Netlify-hosted version, the backend API is fixed as
localhost:3001
. This means that theHOST_PORT
value must be3001
. - Now create another tab or use another browser to open Tic-Tac-to-the-Toe. Now you have two instances of the game! You can create as many tabs or browsers and repeat as you like. Limit: you can only play with yourself since this is a pre-release, Netlify-hosted site.
- Enjoy! (Maybe some solo Tic-Tac-Toe will help heal your soul).
- VueJS 3
- Vite
- TailwindCSS