Skip to content

jogli5er/telegames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

API Clients-Server

GET game/join

Response:

{
    "teams": [
        { "id": 0, "name": "red" },
        { "id": 1, "name": "blue" },
    ],
    "currentMoveTTL": INTEGER
}

POST game/join

Data (id of selected Team):

1

Response:

{
    "sessionId": "irgendetwas",
    "startingTeamId": "givesUsBackTheStartingTeam",
    "currentMoveTTL": INTEGER
}

GET game/move

Response:

{
    "moves": [
        { "id": 0, "name": "Column 1" , "usersSelected": integer},
        { "id": 1, "name": "Column 2" , "usersSelected": integer},
        { "id": 2, "name": "Column 3" , "usersSelected": integer},
    ],
    "totalActiveUsers": integer,
    "currentMoveTTL": 23,
    "currentTeamId":"givesUsBackTheCurrentPlayingTeam",
    "isFinished" : false
}

POST game/move/user/{user_id}

Data (id of selected move):

2

Response:

{
    "moves": [
        { "id": 0, "name": "Column 1" },
        { "id": 1, "name": "Column 2" },
        { "id": 2, "name": "Column 3" },
    ],
    "currentMoveTTL": 21
}

Teletext-API

Spielbrett-Vorschlag

======================================
          T E L E G A M E
======================================
      It's o's move (not x's)

      1   2   3   4   5   6   7
    +---+---+---+---+---+---+---+
    I   I x I   I   I   I   I   I
    +---+---+---+---+---+---+---+
    I o I o I   I   I   I   I   I
    +---+---+---+---+---+---+---+
    I o I o I   I   I   I   I   I
    +---+---+---+---+---+---+---+
    I x I x I x I   I   I   I   I
    +---+---+---+---+---+---+---+
    I o I x I o I   I   I x I   I
    +---+---+---+---+---+---+---+
    I o I x I o I x I o I o I x I
    +---+---+---+---+---+---+---+
    I o I o I o I x I o I o I o I
    +---+---+---+---+---+---+---+

Zeichen, die von der Teletext-API akteptiert werden:

!?=_-/+§°"#*'><;.I

Zeichen, die von der Teletext-API nicht akteptiert werden:

\ => /
| => /
@ => §
¬ => -
~ => -
[ => <
] => >
{ => <
} => >
« => "
» => "

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •