Method: Lishogi::GamesApi#api_user_current_game

Defined in:
lib/lishogi/api/games_api.rb

#api_user_current_game(username, opts = {}) ⇒ Object

Export ongoing game of a user Download the ongoing game, or the last game played, of a user. Available in either KIF or JSON format. If the game is ongoing, the 3 last moves are omitted.

Parameters:

  • username (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :moves (Boolean)

    Include the KIF moves. (default to true)

  • :tags (Boolean)

    Include the KIF tags. (default to true)

  • :clocks (Boolean)

    Include clock comments in the KIF moves, when available. Example: `22 同 玉(51) (00:02/00:00:13)` (default to true)

  • :evals (Boolean)

    Include analysis evaluation comments in the KIF, when available. Example: `9 7八銀(79) * [%eval -1.48]` (default to true)

  • :players (String)

    URL of a text file containing real names and ratings, to replace Lishogi usernames and ratings in the KIF. Example: <gist.githubusercontent.com/ornicar/6bfa91eb61a2dcae7bcd14cce1b2a4eb/raw/768b9f6cc8a8471d2555e47ba40fb0095e5fba37/gistfile1.txt>

Returns:

  • (Object)


234
235
236
237
# File 'lib/lishogi/api/games_api.rb', line 234

def api_user_current_game(username, opts = {})
  data, _status_code, _headers = api_user_current_game_with_http_info(username, opts)
  data
end