Giter Site home page Giter Site logo

halitechallenge / halite-ii Goto Github PK

View Code? Open in Web Editor NEW
213.0 19.0 98.0 175.45 MB

Season 2 of @twosigma's artificial intelligence programming challenge

Home Page: https://halite.io

License: MIT License

Shell 0.28% CMake 0.02% C++ 7.37% Batchfile 0.07% C# 0.28% Go 0.13% Java 0.26% JavaScript 62.32% Makefile 0.30% Python 5.58% Rust 0.18% Scala 0.21% HTML 0.51% Mako 0.01% C 17.15% Ruby 1.38% CSS 1.93% Vue 1.73% Kotlin 0.17% Clojure 0.14%
ai machine-learning machine-learning-algorithms deep-learning deep-neural-networks deeplearning competitive-programming competition coding-challenge coding

halite-ii's People

Contributors

adereth avatar arseniybanayev avatar benjaminfspector avatar bovard avatar christiankurz avatar daowen avatar erdman avatar fohristiwhirl avatar gogokefakefa avatar harikmenon avatar harim86 avatar hvtuananh avatar hypirion avatar j-clap avatar janzert avatar jaywilson avatar jerold avatar joelbyler avatar julskast avatar kerollmops avatar lanyudhy avatar lidavidm avatar marcoheisig avatar mykolagolubyev avatar odonno avatar piotrzielinski avatar snaar avatar toannguyen132 avatar truell20 avatar xinnosuke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

halite-ii's Issues

game.update_map() issue

On whose side is the error?
Crashes when called : game.update_map()
I can not attach a log file.

Summary
{
"Error": {
"Message": "ERRORED! Response received (if any): ",
"Turn": 96
},

Hotjar not working on prod

https://insights.hotjar.com/sites/629189/heatmap/list

halite.io has not reported any data in the past 24 hours.
Installation is automatically verified every hour.

For help on how to install Hotjar, please refer to our step by step installation guide for manual installation, Google Tag Manager, Wordpress, Prestashop, etc.
Tracking codeVerify installation
Site ID: 629189
Copy and paste the code snippet into the tag on every page where you wish to track visitors and collect feedback.

<script> (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:629189,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); </script>

low frequency errors on GPU workers

@lidavidm any idea whats going on?

ERROR:root:Error on get task Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "worker.py", line 315, in main
executeGameTask(int(task["width"]), int(task["height"]), task["users"], backend)
File "worker.py", line 252, in executeGameTask
users, parsed_output = parseGameOutput(raw_output, users)
File "worker.py", line 229, in parseGameOutput
result = json.loads(output)
File "/usr/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Site is down

The website is down. Also when is the launch of second season?

screen shot 2017-09-13 at 12 44 56 am

Game music

Super low priority, integration with Amper if we can. UX design work required. Prototype available

Use constant maximum game duration.

from @Janzert

Currently maximum turns in a game is defined as min(300, 100 + (int) (sqrt(map_width * map_height)))

But the very smallest map size is 240x160 which gives a maximum turns of 295. Every other map size will be limited to 300.

It seems simpler and clearer to just define the maximum number of turns as 300 for all cases.

I believe to change this is just a matter of modifying line 995 & 996 of Halite.cpp to set max_turn_number directly to constants.MAX_TURNS instead of using the current formula.

Update docs with ships docked per planet

The docs1 indicate that "The maximum number of ships that can be docked to a planet is equal to the radius. E.g. a planet with a radius of 3 units may have up to 3 ships docked to it at once." But, the max actually is a property of the Planet and seems unrelated to the radius.

C++ Issues

  1. C++ Issues
    1a) The halite binary is compiled dynamically. I had a slightly older version of libstdc++6 on my machine, which was incompatible and somewhat annoying to update. If you just compile statically, this won't be a problem for people.
    1b) The starter C++ halite bot dies immediately -- seems like it's not publishing commands at all. I didn't debug further.

Jaques, is there a bug in the 'improve bot' code?

Good news is that they're using your instructions!

From: https://forums.halite.io/t/unknown-bug-on-python-need-help/138/4

User wrote:

No problem on Python side i just try to implement the part
up close and personnal part of improve your bot

entities_by_distance = game_map.nearby_entities_by_distance(ship)
nearest_planet = None
for distance in sorted(entities_by_distance):
nearest_planet = next((nearest_entity for nearest_entity in entities_by_distance[distance] if isinstance(nearest_entity, entity.Planet)), None)
if nearest_planet:
break

it seem to come from
nearest_planet = next((nearest_entity for nearest_entity in entities_by_distance[distance] if isinstance(nearest_entity, entity.Planet)), None)

if i comment this line it seem to work

this is a more minimal code i use to test
https://pastebin.com/3VJTgjtp1

Front-end cleanup

Play

  • Add subcopy to . each drag space to explain what to do, fix section hieght and spacing, advanced tools section for each box. (design in progress)

Game ID Strategy

Dealing with Medium INT caps at 16 million. Need to fix this

@Janzert
Since we are just a little over 10% of the way through the current game id size it should be fine to delay dealing with this until after launch.

Also what is currently running on production has a couple of minor changes from what is specified in the git repo (one varchar field size differs and the is_gpu_enabled field has been added but not the game id size change). I'll get a patch together to match the repo, to reality but I am swamped with work the next few days.

Google analytics fixes post-launch

Switch category & action for subscribe events:

  • Subscribe is the category. click-to-subscribe = subscribe-error + subscribe-success, which are the actions. This way I can see unique click-to-subscribe (the number of individual ppl trying to subscribe) vs. the errors.
    image

Other priority issues

  • Can we track the share flow now? click-to-share and click-share-copy click-share-facebook, click-share-linkedin, click-share-twitter
  • Didn’t get analytics event for hackathon error (when I entered garbage instead of a code)
  • I also didn’t get analytics event for hackathon error when I tried to sign up for harvard without validating
  • Didn’t get analytics event when I entered garbage email (julia.kastner)

Onboarding Flow

  • We should have analytics events for clicking next for each page of the onboarding flow:
    Category: onboarding
    Action: clicked-next
    Label: page-{number of page, 1-3}

  • Also click to cancel:
    Category: onboarding
    Action: clicked-cancel
    Label: page-{number of page, 1-3}

  • Maybe also track downloads?
    Category: onboarding
    Action: clicked-download
    Label: {language user selected}

Low priority:

  • I clicked on all TS links on homepage but only got one event
  • I clicked on forum on top nav & homepage but only got one event
  • No events from clicks on cornell & google on homepage
  • I got click-to-sign-up even though I was actually signing in. Can we differentiate?
  • When I submited a replay I got “select-replay-file-another” - why another? It was my first replay with this user?
  • Can we track events on video speed toggle on visualizer?

Check that moves have been sent before getting map update

Inspired by #20. If bot doesn't send moves during a turn for whatever reason, then it will get stuck waiting for map update for the next turn and it will not be obvious to bot maker why it's stuck. We can help minimize the pain by adding sanity checks to bot kits that check for this condition and fail early.

Fix start/end date/time for college hackathons

Can we update start and end times for college hackathons? Should be 9am EST on October 25th through 6pm November 10th.

This is what I see now, looks messy:
image

Also, can we update the location for Harvard, NYU, and Berkeley to say "Online and On Campus" instead of "Online"?

Increase Game Window Size

the size of the game screen is pretty tiny, and this is coming from someone who has pretty good vision. It's pretty difficult to see all the moving pieces. Anyway we can make the window bigger and potentially have a full screen option?

Py 3 timeout game.update_map()

After several games noticed that on the python 3 built-in functions in hlt (game.update_map ()) is sometimes executed too long which leads to a timeout! Argghhhhhh!

C# Starter Kit

Barebones CSharp kit with many bugs is available in airesources/Csharp. Looking for help to make it awesom.

Back button is broken on Leaderboard

  • Steps to reproduce:
  1. Go to Leaderboard from the main page via the navigation menu
  2. Click on page 2, for example.
  3. Press back on your browser.

Expected Result:
You arrive at the leaderboard front page.

Actual Result:
You arrive at the home page.

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.