News for hackers. Stuff that matters.
Re:Warriorjs – An exciting game of programming and artificia... by piqalq on Friday May 11, 2018 @03:25PM (#17050157)
I’ve wondered, why are these types of games, such as Screeps or WarriorJS only ever made to be played with JS. Why not Python or Go or Assembly?
Re:Warriorjs – An exciting game of programming and artificia... by kroltan on Friday May 11, 2018 @03:41PM (#17050296)
There are many polyglot "code games".

Off the top of my head: http://codingame.com/ - They support a lot of languages, even Rust!

I also remember an old Java application where you would write AIs for dueling bots, but I don't recall the name.

The folks at https://codegolf.stackexchange.com/ also host several games like that, more often than not competitively, however, and not open-ended or "singleplayer" games. Most accept any language that can take stdin and print stdout.

Re:Warriorjs – An exciting game of programming and artificia... by brute on Saturday May 12, 2018 @07:27AM (#17053543)
You are probably thinking of http://robocode.sourceforge.net/

I played this like 17 years ago and to my most pleasant surprise, the project is still alive.

Re:Warriorjs – An exciting game of programming and artificia... by pkkm on Saturday May 12, 2018 @07:21AM (#17053526)
> I also remember an old Java application where you would write AIs for dueling bots, but I don't recall the name.

Sounds like Robocode.

Re:Warriorjs – An exciting game of programming and artificia... by aeorgnoieang on Friday May 11, 2018 @04:15PM (#17050485)
This one's based on [ruby-warrior](https://github.com/ryanb/ruby-warrior).

I'm sure there are other ports for other languages too. I'm pretty sure there's a Python one for one.

Re:Warriorjs – An exciting game of programming and artificia... by setr on Friday May 11, 2018 @03:37PM (#17050265)
https://en.wikipedia.org/wiki/Core_War

Probably because if it's going to be in the browser, they have to do a large chunk of the work in JS anyways

and of course, everything is JS these days

Re:Warriorjs – An exciting game of programming and artificia... by vorpalhex on Friday May 11, 2018 @04:52PM (#17050706)
Everybody and their cousin can write basic javascript, especially for these kinds of pretty easy cases.

If you know python and had never written JS before, you could probably still play this with a bit of trial and error.

Re:Warriorjs – An exciting game of programming and artificia... by always_good on Saturday May 12, 2018 @02:23PM (#17055309)
Why would you use those over the ubiquitous language?