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
Raw Normal View History

2022-04-24 10:07:39 -05:00
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