MichaelMrt / ChessPHP

Programming Chess in PHP
1 stars 0 forks source link

Hotfix board reset and empty field error #21

Closed ProfNorm closed 7 months ago

ProfNorm commented 7 months ago

empty-field-error; It is working with the is_a-function. I tried to do it with try-catch but it did not work. Maybe you can help me out @MichaelMrt03?

board reset when submitting with empty inputs: recreates the board without changes from the conveyed chessboard in POST

MichaelMrt commented 7 months ago

I'll have a look when I arrive in Slovakia

MichaelMrt commented 7 months ago

I wouldn't use try catch in there.

You solution looks good to me.

But for the future we need to consider to restructure the code a bit. I'll start with #27 and #14