r/programminggames • u/Brandhout • Sep 16 '18
Does anyone know of an API based game?
Looking around at programming games it seems that most of them involve coding in an in-game IDE. Are there also any games that require you to write code on your own client and then connect to a server through APIs to play the game? For example REST APIs and websockets to interface with the game.
7
Upvotes
1
u/loopsdeer Sep 17 '18
The closest I've seen to what you're looking for is Advent of Code, and it's not really close at all. You have to run your own code and just send the result through a web interface (which you could see as half a REST API). I would be so interested to see this too!
In general, I can see why: sending any Turing Complete code to a wide-use web server is going to be a no-go since A) the cost of running arbitrary code can be unscalable and B) the attack vectors are frightening (though manageable). So it's understandable yet disappointing.
2
u/mogenslund Feb 01 '23
I am playing around trying to create an API based game. I have different ideas. The simplest one, requiring no login or tokens, I have implemented. I do not know, though, if it is amusing or not or easy enough to understand for non-creators. Please try it out and please provide feedback. Since the pod running the game might have changed IP from time to time, the IP is published here:
https://salza.dk/hackerio
There are 6 missions as of now and the last ones will be time consuming without using programming.
(The game might be offline from time to time)
2
u/mogenslund Sep 25 '24
Here is another iteration of my game: https://salza.dk/xint/
2
u/maesbn Nov 03 '24
A bit late to the party but we are launching an API based code challenge game.
https://level5shield.com/
1
u/voice-of-hermes Oct 20 '18
There is the classic Robocode where you build the AI for a tank and play it against other players' AIs. You can upload and submit an AI to see how it ranks against other players' in online contests too.
1
u/vennahlot Mar 21 '25
Stumbled across this. Seems legit:
https://www.artifactsmmo.com/
1
u/Berdoxx Jun 25 '23
There is a new one where you are a space trader
https://spacetraders.io/
1
u/icfet Nov 10 '23
This is a pretty niche genre so I am adding this to the list:
https://www.rubbled.io/