This repository has been archived on 2022-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
zeropod/plugin/chess/__init__.py

14 lines
335 B
Python

from cinput import ControlInput, Button
from graphics import Graphics
from .draw import Draw
from .sunfish import initial
def execute(cinput: ControlInput, graphics: Graphics, _):
draw = Draw(graphics)
draw.draw(initial)
while True:
key = cinput.get_one_shot(5)
if key == Button.BTN_A:
return