MichaelMrt / ChessPHP

Programming Chess in PHP
1 stars 0 forks source link

Feature square selection #37

Closed MichaelMrt closed 6 months ago

MichaelMrt commented 6 months ago

You can now select a square on the board and it will output the picked board x: and y:

Fixed a mistake with $chessboard to $this->chessboard

Instead of $POST we use $SESSION now make things simpler

There are some problems too:

MichaelMrt commented 6 months ago

output order is messed up again with inputs on top of the board because of the post action having to be in a big tag to sent all the data

We can also make 2 seperate forms.

  1. input with text form
  2. input with ui form

Then we just have to make sure that both ui and input option sent the chessboard. I didn't think about that earlier.

MichaelMrt commented 6 months ago

cant move pawns anymore has to be closed for now

MichaelMrt commented 6 months ago

fixed the pawn moves

MichaelMrt commented 6 months ago

I solved the prblem with the pawns not being centered.

I did not understand what you mean by the second problem you emntioned because everything is working fine for me (inputs below the board etc.)

I solved it in the commit "swapped output order" @ProfNorm

MichaelMrt commented 6 months ago

Your commit also contains bishop, is this wanted?

MichaelMrt commented 6 months ago

base for #30