News for hackers. Stuff that matters.
Re:LeekWars, program your AI to destroy your leek enemies by stefanvdw1 on Sunday June 05, 2022 @04:09PM (#31634411)
If been looking for a game like this or Robocode but where the code that you need to write is written in Rust. Does something like that exist?
Re:LeekWars, program your AI to destroy your leek enemies by wongarsu on Sunday June 05, 2022 @04:59PM (#31634791)
In screeps [1] you program your units in JavaScript, which opens the door to using Rust via WASM [2][3]

1: https://screeps.com/

2: https://github.com/rustyscreeps/screeps-game-api/

3: https://github.com/rustyscreeps/screeps-starter-rust

Re:LeekWars, program your AI to destroy your leek enemies by jna_sh on Sunday June 05, 2022 @05:50PM (#31635166)
You can play Battlesnake (https://Battlesnake.com) in anything, Rust is quite popular.
Re:LeekWars, program your AI to destroy your leek enemies by hr0m on Monday June 06, 2022 @07:02AM (#31638965)
This looks really nice. I'll try that out. Do you know more similar games? I.e. where the choice of the programming language is done by the player?
Re:LeekWars, program your AI to destroy your leek enemies by Karliss on Monday June 06, 2022 @01:07AM (#31637391)
You might be interested in bot programming section of https://www.codingame.com/multiplayer/bot-programming . The programming interface is standard input output based so they support a lot of programming languages including Rust.

They also occasionally organize live tournaments lasting for a week or two, which introduce a new game. From the names like fall-challange-2021 and spring-challange-2021 I assume those happen no more than every 6 months.

In general the ones that are in form of temporary contests often support many languages due to same reason I mentioned before. One thing to watch out that due to sandboxing reasons and the platform needing to compile your code any third party libraries are usually not available. This might be slightly more painful for Rust and their crate based ecosystem.

https://en.wikipedia.org/wiki/AI_Challenge series used to be good but they are not organizing new ones. VK organizes yearly contests called "Russian AI cup" with very similar format as AI_Challange https://en.wikipedia.org/wiki/Russian_AI_Cup . Although participation currently might be messy due to the current political situation. Also the website isn't fully translated to English. List of old contents can be found here https://cups.online/en/contests/?category=ai&utm_campaign=to...

Re:LeekWars, program your AI to destroy your leek enemies by fragmede on Sunday June 05, 2022 @04:14PM (#31634440)
A fun programming exercise would be to write it yourself!