Skip to content

malikgcoding/beauty-contest

Repository files navigation

Beauty Contest Game

A TypeScript implementation of the "Beauty Contest" game from Alice in Borderland.

Project Banner

Table of Contents

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/malikgcoding/beauty-contest
    cd beauty-contest
  2. Install dependencies:

    npm install
  3. Run the development server:

    npm start
  4. Open in your browser: Visit http://localhost:3000 (or the port shown in your terminal).

Game Rules

  1. Each player chooses a number between 0 and 100.
  2. The winner is the player whose chosen number is closest to 80% of the average of all chosen numbers.
  3. If there are multiple players equally close, everybody loses one point.
  4. If the winner chooses the exact (rounded) correct number, the other players lose two points.
  5. If there are two players left, one picks zero and the other picks 100, the one who picked 100 wins.

Languages

  • TypeScript
  • HTML5/CSS
  • JavaScript/NodeJS

Console Commands

List players:

list

Kick players:

kick player-name

About

The beauty contest game from Alice in Borderland written in TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published