Giter Club home page Giter Club logo

next's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

next's Issues

Javascript starter bot - 2 bugs

Hi,

I find two bugs in your starter bot for javascript language.
They are both in the logic.js file.

  1. It is in function isInBounds. You are checking the coordinates as follows:
    if (0 >= coordinate.x || coordinate.x >= settings.field_width) {
        return false;
    }

    if (0 >= coordinate.y || coordinate.y >= settings.field_height) {
        return false;
    }

So it means that all 0 coordinates for X & Y axes are returned as false.
The corrected version should be:

    if (0 > coordinate.x || coordinate.x >= settings.field_width) {
        return false;
    }

    if (0 > coordinate.y || coordinate.y >= settings.field_height) {
        return false;
    }
  1. It is in function getCoordinateFor. You are checking if some cell of the field is equal to botId, but it has a problem when both players are staying on the same cell. Because then the cell is equal to '01' so your code returns index === -1

Your version:

function getCoordinateFor(settings, field, botId) {
    const index = field.findIndex(f => f === botId);
    return indexToCoordinate(settings, index);	
}

Should be corrected to something like:

function getCoordinateFor(settings, field, botId) {
    const index = field.findIndex(f => f.includes(botId));
    return indexToCoordinate(settings, index);	
}

Dump page rarely works

Often times the dump page for a match is just a white screen, or will show the header, footer, and spinner without ever showing the IO log.

My bot writes logs to standard error, and I would like to be able to see what it's thinking when I lose matches, but the dump page almost never works.

Here's an example page that is failing:
https://booking.riddles.io/competitions/hack-man/match/a78136cb-9a19-432a-8f8b-1f432f6ec327/dump

Uncaught TypeError: Cannot read property 'get' of undefined(…)
app.js:3 Uncaught TypeError: Cannot read property '__reactInternalInstance$seqkx3tnnltsgrzl0m3kawcdi' of null(…)
app.js:31 Uncaught TypeError: Cannot read property 'get' of undefined(…)
app.js:3 Uncaught TypeError: Cannot read property '__reactInternalInstance$seqkx3tnnltsgrzl0m3kawcdi' of null(…)

If I open it in incogneto mode, I don't get the React errors, but I do get the error about reading the get property from undefined.

Error in java starter bot

In BotParser > parseSettings
opponentId = 2 - myId +1

With this formula opponent id is either 1 or 2 where it should be 0 or 1.

Could you change to : opponentId = 2 - (myId +1) or opponentId = (myId +1)%2 ?

Regards

Leaderboard not loading

Hey guys,

I don't know if I am just unlucky, but for me the Leaderboard doesn't want to load since the last update.

C# Compile Errors

We haven't been able to compile a C# bot since 11/2/2016 1pm CST.

Errors

WARNING: Your kernel does not support swap limit capabilities, memory limited without swap. warning CS8001: SDK path could not be resolved error CS0016: Could not write to file `run_ai'. Could not find a part of the path "/compiler_dir/bot_043f937e-f6fc-4f99-9a79-66d727f555a0_27-compiled/run_ai".

Output

Note: dmcs is deprecated, please use mcs instead! Compilation failed: 1 error(s), 1 warnings

Can't easily get to my matches

Hey Guys,

The whole site is pretty fast lately, great job! However how can I see only my matches? The filter in "match log" is gone now :(

Platform upgrade Riddles.io

booking.riddles.io

I just uploaded, around 15/20 minutes ago, two new bots, they are both still in compiling queue.
I don't know if it's the platform upgrade...
I do think so, because yesterday it was much quicker.

Additionally:
OSX 10.11 & Firefox 50: the upload button for new bots simply does nothing.
I needed to change to Chrome to be able to upload a new bot...

Oh: and on both firefox & chrome: the reply button in the posts did no effect, so I was forced to comment it here in github

several revisions stuck

It seems that today the platform has worms today Dec. 5th (as a word game):
You probably know already, but just incase:
I have several revisions (Jaava) which waited for comilation all the afternoon, and one got compiled but is stuck with: Input test success, playing test match

For test reasons I made a new account, and uploaded a bot hours ago. and the status there is stuck on:
Bot compiled, running input test

Great job anyway you guys did! Keep it up!

Undo link on post deletion

When the user clicks on the trash icon in a discussion thread, his post is deleted, the user sees a delete confirmation notice.

The confirmation notice should also include an "Undo" button to undo this move if the user accidentally deletes his post.

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.