Skip to main content

SDK étudiant pour la compétition IA i151

Project description

i151-arena-sdk — SDK étudiant

Package installable pour développer et tester un bot i151 en local, sans cloner le dépôt complet.

Installation

python3 -m venv .venv && source .venv/bin/activate
pip install i151-arena-sdk

En développement (monorepo) :

cd arena/engine && pip install -e ".[dev]"
cd ../sdk && pip install -e ".[dev]"

Démarrage rapide

arena init mon-bot
cd mon-bot
pip install -r requirements.txt
arena test bot.py
arena match bot.py --vs random --seed 42

Exemples publics (inclus dans le package)

Alias CLI Description
starter Première action légale
basic Heuristique gloutonne
arena test starter
arena match basic --vs random --seed 42

Les bots avancés (MinMax, MCTS, RL, PPO) restent dans le monorepo pour le développement interne et ne sont pas publiés sur PyPI.

Interface bot

from arena_sdk import PlayerView, Action

def decide(view: PlayerView, legal_actions: list[Action], time_left_ms: int) -> Action:
    return legal_actions[0]

CLI

arena init mon-bot              # créer un projet
arena test bot.py               # smoke test vs random
arena match bot.py --vs random  # match complet
arena match bot.py --vs basic   # affronter l'exemple glouton
arena match bot.py --replay-out replay.json

ML (local)

from arena_sdk.features import encode_view, action_from_index

Voir ../docs/TUTORIAL.md pour le guide complet.

Dépendance

Ce package réexporte PlayerView, Action et play_match depuis i151-engine (installé automatiquement).

Publication PyPI

cd arena/engine && python -m build && twine upload dist/*
cd ../sdk && python -m build && twine upload dist/*

Publier i151-engine avant i151-arena-sdk.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

i151_arena_sdk-0.2.0.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

i151_arena_sdk-0.2.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file i151_arena_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: i151_arena_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 31.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for i151_arena_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a43e85341cb3f33aec3c9144108d3192436a6da916ddb8110d8fa72179f9d1b7
MD5 6d711d1df55b089ed37bb5bed0da270d
BLAKE2b-256 701bff166a83c6f50a8f5d0fa2720a554e0698c54ce9d799c75d368f5805f73d

See more details on using hashes here.

File details

Details for the file i151_arena_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: i151_arena_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for i151_arena_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f88c4de3d2ddf9efcf8a45420a5d792e67b2cf9597c1f58be4fff38fe4217b3
MD5 471d32c704f9fe51d00d06e2460325a1
BLAKE2b-256 2c4a0b3b412878cad1428dfc6cb517a04fc33da6681775fc95174abe82ddc049

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page