-
Notifications
You must be signed in to change notification settings - Fork 1
IAH: INTERNET WAR | SINGLEPLAYER AI API
Default API Endpoint: http://127.0.0.1:6800/[request_name]
Use GET Requests to get something and POST to alter something.
GET Returns back string that represents Game Player State.
- STARTING
- LOADING
- MAIN_MENU_INTRO
- MAIN_MENU
- MODE_SELECTION
- HACKER_SELECTION
- HACKER_SELECT
- SANDBOX
- INGAME
- TPSCREEN
- GAMEOVER
POST Transition the Game Player to a certain State. {transition,transitionValue}
Transitions are needed when you want to navigate the main menus. For example, {"transition": "MAIN_MENU"} or to select ScriptKiddie {"transition": "HACKER_SELECT", "transitionValue" : 0}
Potential Hackers:
ScriptKiddie = 0, Java = 1, Ping = 2, Overflow = 3, Backstab = 4, Dns = 5, Deepthroat = 6, Sonic = 7, Scanner = 8, Contract = 9, DevOps = 10, Jack = 11, Whale = 12, Null = 13, Terror = 14, Troll = 15, Filter = 16, Pro = 17, Freelancer = 18, Node = 19, Toxic = 20, Prince = 21, Drama = 22, Liar = 23, Crab = 24, Block = 25, Pixel = 26, Senior = 27, WhiteHat = 28, BlackHat = 29, Spy = 30, Cookie = 31,
GET Return a container object with an array of objects representing Chaos or TP Card that you can select.
POST Choose a Chaos Card or TP Card. -> {"action", 0} -> Select First Card.
https://i.gyazo.com/8e375b3f859fd92626b783c364f39b7b.png
GET Return currently presents tiles in the game and data associated with them.