#!/usr/bin/env python3
"""Compatibility wrapper for Bab 12 gridworld Q-learning.

The fuller Bab 12 playground lives in `rl_playground.py`. This file keeps the
older chapter entry point working for readers who open the historical script.
"""

from __future__ import annotations

import json

from rl_playground import gridworld_demo


def main() -> None:
    result = gridworld_demo(seed=11)
    print(json.dumps(result["q_learning"], ensure_ascii=False, indent=2))


if __name__ == "__main__":
    main()
