GithubHelp home page GithubHelp logo

tkcoder666 / lux-ai-2021 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tonghuikang/lux-ai-2021

0.0 0.0 0.0 2.04 MB

My published benchmark for a Kaggle Simulations Competition

Home Page: https://kaggle.com/c/lux-ai-2021/

Python 89.79% Shell 4.09% Jupyter Notebook 6.12%

lux-ai-2021's Introduction

Lux AI Working Title Bot

Please refer to the Kaggle notebook for questions about the code structure and agent logic.

This README will explain how to use this repository.

Setup

See ./setup.sh for the scripts and comments to install the required components.

You will need Node version 12 or above.

Make submission files

Run ./make_submit.sh to generate the following files

  • The zipfile submission.tar.gz which can be submitted to Kaggle directly.
  • The notebook submission notebook_generated.ipynb. You can upload this notebook into a fork of my notebook and submit.

Running a Game

You can run a game with notebook_test.ipynb

game-rerun-screenshot

You may define the width and height of the board, as well as the seed. Annotations are shown on the board.

This code snippet is also run in the generated notebook.

If you want to compare between the bots, it is recommended that you use the contest command line interface lux-ai-2021. make_tournament.sh contains some scripts that I use to test my bots against its earlier versions.

Analysing Game State and Missions

You may run the game logic on a specific turn with notebook_debug.ipynb to understand why the agent has made a certain decision.

debug-screenshot

When the run is made with notebook_test.ipynb, the game state, and missions are saved as Python pickle files. You may load the Python pickle file and run the game logic to produce the actions and updated missions.

As the game logic is run, it prints the new mission planned, the actions made include the annotation.

You can modify the code and see how the agent reacts different for the same game state and missions. This allows you iteratively improve the agent more quicking.

This code snippet is also run in the generated notebook.

lux-ai-2021's People

Contributors

tonghuikang avatar ketang666 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.