Welcome to the Lux AI Challenge Season 2! (Now at NeurIPS 2023)
The Lux AI Challenge is a competition where competitors design agents to tackle a multi-variable optimization, resource gathering, and allocation problem in a 1v1 scenario against other competitors. In addition to optimization, successful agents must be capable of analyzing their opponents and developing appropriate policies to get the upper hand. The goal of the NeurIPS 2023 edition of the competition is to focus on scaling up solutions to maps and game settings larger than the previous competition.
Key features this season!
- GPU/TPU optimized environment via Jax
- Asymmetric maps and novel mechanics (action efficiency and planning)
- High quality dataset of past episodes of game play from hundreds of human-written agents including the strongest humans have been able to come up with thus far.
Go to our Getting Started section to get started programming a bot. The official NeurIPS 2023 competition runs until November 17th and submissions are due at 11:59PM UTC on the competition page: https://www.kaggle.com/competitions/lux-ai-season-2-neurips-stage-2.
Make sure to join our community discord at https://discord.gg/aWJt3UAcgn to chat, strategize, and learn with other competitors! We will be posting announcements on the Kaggle Forums and on the discord.
Environment specifications can be found here: https://lux-ai.org/specs-s2. These detail how the game works and what rules your agent must abide by.
Interested in Season 1? Check out last year's repository where we received 22,000+ submissions from 1,100+ teams around the world ranging from scripted agents to Deep Reinforcement Learning.
If you use the Lux AI Season 2 competition/environment in your work, please cite as so
@inproceedings{luxais2_neurips_23,
title = {Lux AI Challenge Season 2, NeurIPS Edition},
author = {Stone Tao and Qimai Li and Yuhao Jiang and Jiaxin Chen and Xiaolong Zhu and Bovard Doerschuk-Tiberi and Isabelle Pan and Addison Howard},
booktitle = {Thirty-seventh Conference on Neural Information Processing Systems: Competition Track},
url = {https://github.com/Lux-AI-Challenge/Lux-Design-S2},
year = {2023}
}
You will need Python >=3.8, <3.11 installed on your system. Once installed, you can install the Lux AI season 2 environment and optionally the GPU version with
pip install --upgrade luxai_s2
pip install juxai-s2 # installs the GPU version, requires a compatible GPU
If you don't know how conda works, I highly recommend setting it up, see the install instructions. You can then setup the environment as follows
conda create -n "luxai_s2" "python==3.9"
conda activate luxai_s2
pip install --upgrade luxai-s2
This will install the latest version of the Lux AI Season 2 environment. In particular, the latest versions default game configurations are for the NeurIPS 2023 competition. For those looking for the competition prior to NeurIPS 2023 (smaller mapsizes and scale), see this commit for code or do pip install luxai_s2==2.2.0
.
To verify your installation, you can run the CLI tool by replacing path/to/bot/main.py
with a path to a bot (e.g. the starter kit in kits/python/main.py
) and run
luxai-s2 path/to/bot/main.py path/to/bot/main.py -v 2 -o replay.json
This will turn on logging to level 2, and store the replay file at replay.json
. For documentation on the luxai-s2 tool, see the tool's README, which also includes details on how to run a local tournament to mass evaluate your agents. To watch the replay, upload replay.json
to https://s2vis.lux-ai.org/ (or change -o replay.json
to -o replay.html
)
Each supported programming language/solution type has its own starter kit, you can find general API documentation here.
The kits folder in this repository holds all of the available starter kits you can use to start competing and building an AI agent. The readme shows you how to get started with your language of choice and run a match. We strongly recommend reading through the documentation for your language of choice in the links below
- Python
- Reinforcement Learning (Python) - This is designed for a lot of customization and suitable for doing your own RL research in this competition
- Simple Reinforcement Learning tutorial with SB3 (Python)
- C++
- Javascript
- Java
- Go - (A working bare-bones Go kit)
- Typescript - TBA
Want to use another language but it's not supported? Feel free to suggest that language to our issues or even better, create a starter kit for the community to use and make a PR to this repository. See our CONTRIBUTING.md document for more information on this.
If you want to learn how to use the GPU optimized environment see https://github.com/Lux-AI-Challenge/Lux-Design-S2/tree/main/examples/jax_env_tutorial.ipynb
See https://github.com/RoboEden/Luxai-s2-Baseline for a simple script to download desired episode data from Kaggle. This repository also provides a strong reinforcement learning baseline solution that is easy to iterate and perform research with.
Finally, to stay up to date on changes and updates to the competition and the engine, watch for announcements on the forums or the Discord. See ChangeLog.md for a full change log.
As the community builds tools for the competition, we will post them here!
- Advanced Submission Stats: http://luxaistats.crabdance.com/ (Code at https://github.com/nikiandr/lux_ai_stats)
- 3rd Party Viewer (This has now been merged into the main repo so check out the lux-eye-s2 folder) - https://github.com/jmerle/lux-eye-2022
See the guide on contributing
We are proud to announce our sponsors QuantCo, Regression Games, and TSVC. They help contribute to the prize pool and provide exciting opportunities to our competitors! For more information about them check out https://www.lux-ai.org/sponsors-s2.
We like to extend thanks to some of our early core contributors: @duanwilliam (Frontend), @programjames (Map generation, Engine optimization), and @themmj (C++ kit, Go kit, Engine optimization).
We further like to extend thanks to some of our core contributors during the beta period: @LeFiz (Game Design/Architecture), @jmerle (Visualizer)
We further like to thank the following contributors during the official competition: @aradite(JS Kit), @MountainOrc(Java Kit), @ArturBloch(Java Kit), @rooklift(Go Kit)
Finally, we are grateful for the support provided by Parametrix.ai in the research and development of this challenge.