Play Game

Each game will have different rules with corresponding parameters according to that game.

Play TicTacToe/Caro

Request

POST /v1/game/tic-tac-toe/66862431a9404bfd528fb100 HTTP/1.1
Host: roomkeeper.api.mimiland.io
mm-user-id: 662a347843e80ce0a0d73384
mm-client-id: mml
Content-Type: application/json
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
Content-Length: 24

{
    "x":2,
    "y":1
}

Parameter

Key
Type
Description

x *required

Int

Vertical position

y *required

Int

Horizontal position

Play Flip&Match

Request

POST /v2/game/flipnmatch/turn/663ae9f4407dedd9ec2d7bc0 HTTP/1.1
Host: roomkeeper.api.mimiland.io
mm-user-id: 662a347843e80ce0a0d73384
mm-client-id: mml
Content-Type: application/json
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
Content-Length: 20

{
    "position":0
}

Parameter

Key
Type
Description

position *required

Int

Flip's position

Play Connect 4

Request

POST /v2/game/tic-tac-toe/{{roomUid}} HTTP/1.1
Host: localhost:8200
mm-user-id: 653263bed995b4f348456dd6
mm-client-id: mml
Content-Type: application/json
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
Content-Length: 16

{
    "col": 4
}

Parameter

Key
Type
Description

col *required

Int

Column on chessboard

Last updated