Skip to content

v1.7.0

Choose a tag to compare

@advnpzn advnpzn released this 26 Sep 11:07
· 2 commits to main since this release
e7362f4

akipy 1.7.0

This release fixes game startup against Akinator’s current website and adds an image URL that follows the game as questions are answered.

What’s new

  • start_game() now reads the session and first question from the current /game page. A signature is no longer required, fixing the ValueError reported with 1.6.0.
  • akinator_image_url now points to the current PNG fallback image. It updates after an answer, changes when Akinator makes a guess, and returns to the previous image on Back. akitude_url remains available as an alias.
  • New state fields help distinguish game outcomes: no_question, child_mode_blocked, and soundlike.
  • Answer and Back handling now preserve the correct state after a rejected guess.
  • Rejected requests with completion="KO" raise AkinatorServerError. A SOUNDLIKE ending is handled separately from a defeat.
  • The README now includes sync and async examples, image usage, and guidance for guesses and terminal states.

The PNG image is the website’s non-animated fallback. It is calculated from scores already returned by Akinator, so using it does not add network requests.

Upgrade

pip install --upgrade akipy

No code changes are needed for a basic game. If your application handles errors, note that a rejected game request now raises AkinatorServerError.

What’s Changed

Fix Akinator sessions and add per-question PNG images by @advnpzn in #17

Full Changelog: v1.6.0...v1.7.0