Post by Admin on Mar 12, 2016 16:38:13 GMT
Playing a Game:
The second feature of this plugin, allows two players to play a game. a new button "Play Game" should appear next to create thread in whichever boards you designated the plugin to run in. click that button, and it will ask who you want to play against. when you select someone, it will start a new thread and bring up a new board. white moves first, and the challenger plays white. once you make the opening move, select "I moved" from below the board, and it saves it to the thread for display. when looking at any thread with a running game, the first post will display the current board positions, but you can hit the prev/next buttons below it to see how the game progressed. when its a player's turn, it will show a "Its your move" button above the board, that when clicked will bring up the playable board again.
on the playable board, each of your pieces when hoverd will show in green the squares you can legally move to. it checks for king danger by eliminating moves that would put it into check. it highlight any opponent piece that can be captured in red. it will also highlight in yellow any special moves like en passant and castling. when king is in check, it will show in red on display and playable board along with an alert message. if king is in mate, the game is over and no further plays can be made.
since its a thread, regular replied can still be added to the thread without affecting the game itself. it will also tag both players in the first post for searching or notification. there isnt currently any notification when its someone's turn, but Im looking into it.
enjoy