This is a simple implementation of the Connect Four game using React.
The game is hosted on Vercel and can be accessed at https://connect-4-test.vercel.app
- Clone the repository
- Run
yarn
- Run
yarn dev
- Visit
http://localhost:5173
- The game is played on a grid that's 7 columns by 6 rows.
- Players take turns dropping one of their colored discs from the top into a column.
- The disc falls straight down, occupying the lowest available space within the column.
- The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs.
- The game ends when there is a winner or the board is full with no more possible moves.
yarn dev
: Start the development serveryarn build
: Build the project for productionyarn test
: Run tests using Vitest
- React for building the user interface
- TypeScript for type safety
- Redux Toolkit for state management
- Vitest for testing
- Tailwind CSS for styling