This is the frontend repository, also called APP, for a Gomoku game
If you don't have this repository locally alredy, here is the steps you can follow to clone it.If you don’t already have this repository locally, here are the steps you can follow to clone it.
-
Go to your git bash
-
Make sure you're in the correct directory of where you want to clone the repo (repository)
-
git clone (URL)
-
go to main by doing this steps: cd ck-frontend
If you already have the repo locally:
-
Go to your git bash
-
Make sure you are in the right project ck-frontend and that you're standing in main
-
Use git pull, this will pull down all of the recent changes that are made, if there are any to you locally.
-
Use git status to make sure that you have pull everything correctly
Simple guide of how to use this repo.
-
Install dependencies npm install
-
Start the development server: npm run dev
-
Open your browser and navigate to http://localhost:3000 (or the port specified in the console)
- Choose your player, 1 or 2. Then choose your color and click on "Start Game"
- Players alternate turns
- The objective is to be the first to form an unbroken chain of five dots horizontally, vertically or diagonally
- The game will automatically detect wins and display the winner
- Two players take turns placing dots on the intersections of the grid
- The first player to align exactly 5 dots in a row (horizontally, vertically or diagonally) wins
- If the board fills up without a winner, the game is a draw
- Horizontal: Five dots in a row across Vertical: Five dots in a row up and down Diagonal: Five stones in a row diagonally
- Interactive game board with click-to-play functionality
- Win detection for all victory conditions
- Turn indicator showing current player
- Game reset functionality
- Thanks to all contributors
- Inspired by the classic Gomoku game