Brokkolii / chess-game-v2

0 stars 0 forks source link

Handle Inputs better #18

Closed Brokkolii closed 2 months ago

Brokkolii commented 2 months ago

Currently the Inputs are a Mess. The Input Handler should be a own Struct/Interface that can return a played Move or other Input Actions of some kind. It should set a state async (when an input is made) and in the next update cycle that Event should be handled by the engine. Design it in a way that it would also work for Bots or Api players