# rodeo.vibecode.tatakae.battle.record

> Published by [vibecode.rodeo](https://lexicon.garden/identity/did:plc:tkzqhwl7yem3xbng3rnb5tv2)

## Description

A record of a single Tatakae battle between two AT Protocol accounts.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tkzqhwl7yem3xbng3rnb5tv2/rodeo.vibecode.tatakae.battle.record)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tkzqhwl7yem3xbng3rnb5tv2/rodeo.vibecode.tatakae.battle.record/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tkzqhwl7yem3xbng3rnb5tv2/rodeo.vibecode.tatakae.battle.record/examples)

## Definitions

### `rodeo.vibecode.tatakae.battle.record`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `won` | `boolean` | Yes | True if the player won. |
| `turns` | `integer` | Yes | Number of combat turns before the battle ended. |
| `opponent` | `string` (handle) | Yes | Handle of the opponent. |
| `createdAt` | `string` (datetime) | Yes | ISO 8601 timestamp of when the battle took place. |
| `playerType` | `string` | Yes | Primary type of the player's fighter. |
| `opponentType` | `string` | Yes | Primary type of the opponent's fighter. |
| `finalPlayerHp` | `integer` | Yes | Player HP remaining at end of battle. |
| `finalOpponentHp` | `integer` | Yes | Opponent HP remaining at end of battle. |

## Raw Schema

```json
{
  "id": "rodeo.vibecode.tatakae.battle.record",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "opponent",
          "playerType",
          "opponentType",
          "won",
          "turns",
          "finalPlayerHp",
          "finalOpponentHp",
          "createdAt"
        ],
        "properties": {
          "won": {
            "type": "boolean",
            "description": "True if the player won."
          },
          "turns": {
            "type": "integer",
            "minimum": 1,
            "description": "Number of combat turns before the battle ended."
          },
          "opponent": {
            "type": "string",
            "format": "handle",
            "description": "Handle of the opponent."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "ISO 8601 timestamp of when the battle took place."
          },
          "playerType": {
            "type": "string",
            "description": "Primary type of the player's fighter."
          },
          "opponentType": {
            "type": "string",
            "description": "Primary type of the opponent's fighter."
          },
          "finalPlayerHp": {
            "type": "integer",
            "minimum": 0,
            "description": "Player HP remaining at end of battle."
          },
          "finalOpponentHp": {
            "type": "integer",
            "minimum": 0,
            "description": "Opponent HP remaining at end of battle."
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "A record of a single Tatakae battle between two AT Protocol accounts."
}
```
