# XWUIGamePvPScoreboard

A PvP match scoreboard that renders a two-team layout from `teams` (each with a name, color, score, and players), a VS score header, and a per-team table of players sorted by score showing K/D/A and score columns plus an optional medals column toggled by `showMedals`. A countdown timer is shown when `timeRemaining` (seconds) is greater than zero. Use it for end-of-round or live PvP match results; player names and team colors are escaped before rendering, and `updateData` refreshes teams and the timer.

## Basic Usage

Instantiates the PvP scoreboard with empty teams and no timer, ready to be populated via `updateData`.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A two-team PvP scoreboard with KDA stats, scores, medals, and a countdown timer.
```

## Live Match

A close in-progress round with the countdown timer running and award medals on standout players.

```example
file: examples/LiveMatch.ts
html: examples/LiveMatch.html
title: Live Match
description: A live two-team round with timeRemaining driving the countdown and showMedals enabled.
```

## No Medals

A final post-match summary with the medals column hidden and no countdown timer.

```example
file: examples/NoMedals.ts
html: examples/NoMedals.html
title: No Medals
description: A stats-only final board with showMedals disabled and timeRemaining at zero.
```

```api
```
