/connect-four

Primary LanguageTypeScriptMIT LicenseMIT

Connect-four

preview

Description

Connect-four is a web application that lets you play the classic Connect Four game with friends or against an AI.

Connect Four is a two-player game where players take turns dropping colored discs into a 7x6 grid. The goal is to connect four discs in a row, either horizontally, vertically, or diagonally.

This project supports local multiplayer and a simple but challenging AI.

Table of Contents

  1. Installation
  2. Usage
  3. Tests
  4. License

Installation

Prerequisites

  • This project uses Bun.

Steps

  1. Clone the repository:
    git clone https://github.com/GhoulKingR/connect-four.git
  2. Install dependencies:
    bun install

Usage

Running the project

  1. Start the development server:
    bun run dev
  2. Open http://localhost:3000/connect-four in your browser.

Live site

Tests

Running tests

bun run test

Writing tests

  • This project uses Jest for unit and integration tests.

License

Distributed under the MIT License. See LICENSE for more information.