A TypeScript implementation of the "Beauty Contest" game from Alice in Borderland.
-
Clone the repository:
git clone https://github.com/malikgcoding/beauty-contest cd beauty-contest
-
Install dependencies:
npm install
-
Run the development server:
npm start
-
Open in your browser: Visit http://localhost:3000 (or the port shown in your terminal).
- Each player chooses a number between 0 and 100.
- The winner is the player whose chosen number is closest to 80% of the average of all chosen numbers.
- If there are multiple players equally close, everybody loses one point.
- If the winner chooses the exact (rounded) correct number, the other players lose two points.
- If there are two players left, one picks zero and the other picks 100, the one who picked 100 wins.
- TypeScript
- HTML5/CSS
- JavaScript/NodeJS
List players:
list
Kick players:
kick player-name