Code a la Mode - Puzzle Discussion

I’ve pinged the devs about your issue (that you reported during the contest and a few days ago in another post). Another Clojure player had the same issue during Xmas Rush.

Thank you.

Hi all!

There are wrong inputs in the JS starter kit:

  1. numTablesWithItems has a value of 0. Given that the next loop is based on it, this loop never executes.
  2. Inside the loop, the variables tableX, tableY and item have irrelevant values.

This makes the challenge impossible to solve in JS.
May someone fix it please ?:slightly_smiling_face:

The inputs aren’t based on the starter kits, the game gives you the inputs.
It is correct that on your first round, no table has any item on it. Instead, the corresponding crates are marked as “B” and “I” in the grid (Which is read in lines 117-120 in the starter).
You get the corresponding crates by using the function getCellFromType in GAME.grid

Later on in the game, tables may have items on them, only then numTablesWithItems will have a value greater than 0.

2 Likes

hey,

@Anti Squid, thanks for posting this topic and thank you all for your replies. It was quiet informative and helped me a lot with my 192.168.0.254 IP router panel as i was also having the same issue.

Best regards!!!

The inputs aren’t based on the starter kits, the game gives you the inputs.

Yeah, this is so logical that I don’t know why I focused on the starter kit.

Thank you for this clear answer !

Hi all !
I’m facing a very frustrating problem in this game : I’m OK for the coop side, but almost everytime
I drop a dish on the table just to take strawberries and chop them, the AI gets back my plate before me.
It wouldn’t bother me if I earned some points, but it seems not to be the case.

Maybe I miss something, or got something wrong in the instrrctions.

an all likelyhood, you test your code in the IDE against the same AIs (the boss) which behave the same way. However, losing against the boss AI in the IDE doesn’t mean your AI is necessarily bad. When you submit your code, your AI plays matches against different kind of AIs and strategies, so you can potentially score higher than the boss even if you lose all your matches against it.

Now, if an AI is doing an action that disturbs your AI, then you must update your AI so it adapts to any situation.

Thanks @TwoSteps, I guess those are words of wisdom !
So I’m gonna handle this “greedy partner” problem.

I am in the starter-League and have a Question:

Is ‘DISH-ICE_CREAM-BLUEBERRIES’ the same order/item as ‘DISH-BLUEBERRIES-ICE_CREAM’ ?

does it matter in what order i collect stuff?

The item order does not matter in the DISH name, your two examples are indeed the same. You can collect items in the order of your choice.

2 Likes

Bonjour,

Je parle français car le bug ne concernent que les français.

Il y une petite erreur dans l’énoncé de Coding Games and Programming Challenges to Code Better en ligue bronze.

« Pour préparer une tarte aux myrtilles, il faut couper la pâte à la planche à écouper »

Il faut dire planche à découper.

Bonne journée,
Vincent

1 Like

Hi,

Another little bug in the referee. It says “Cannot take TART while holding STRAWBERRIES!” but it should be the opposite: Cannot take STRAWBERRIES while holding TART!

Thanks for the game though!

2 Likes

If your partner deactivates for any reason, their position is reported as -1,-1. This was throwing wrenches into my wood 2 bot until I tracked it down. It would be nice to have that mentioned in the description.

Bonjour,
Je pense qu’il y a un beug dans le jeu du cuisinier au niveau de la validité d’une commande ou alors quelque chose m’échappe.

Je vais rendre cette commande :
image

Elle ne passe pas :
image

Par contre l’autre chef veut rendre :
image

Et ça passe… :
image

Hey!
Prefer English here if you can. :slight_smile:
Concerning the game, I confirm you are probably missing something. :wink:
But hard to say what just from the pictures. Sharing a replay of the game would be more useful.
Use that button to get the replay and share it here.

11 Likes

Hi Blaise :slight_smile:
Thanks for your response. I will to continue improve my code so ^^

OK. Don’t hesitate to ask back, with a replay, if you don’t find the problem.

12 Likes

Hi,
I noticed there is no mentions of Empty tables (#) in the input description. It only appears at the beginning of the game description.

I seem to have an issue with the game’s input being innaccurate. More specifically, with the table item locations. the x/y coordinates are… not reliable by any means. I’m sharing a game below that will highlight the problem, especially if you look at the error output (which is where I routed table items and their locations). You’ll see that as soon as the chopped strawberries are set down at (7,4), the program tells me they are at (2,4). 5 turns later,it suddenly starts reporting that it’s at (7,22083), which is FAR off grid.

The strawberries first hit the table at turn 45.

Please do not judge my code for this, as it is exploratory at the moment.