1
Flinx
Chess Module - move take back?
  • 2004/8/26 13:13

  • Flinx

  • Just popping in

  • Posts: 14

  • Since: 2004/6/30



This one is probably for Dave_L..

A user made a move in haste, and would like to take it back.
It's a friendly game, when we play f2f it's generally allowed.

Is there some way for me ( as admin ) to remove his last move?


- As a work around, we could start a new game using FEN to set the board up. but then we wouldn't have the full move list for the generated PGN, ( I like to analize my games afterward ). Yes, I could further, just type it in, but...
i'm, lazy

-Flinx

2
Dave_L
Re: Chess Module - move take back?
  • 2004/8/26 14:51

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


The only way would be to manually change the database columns for that game. These are the columns that potentially require changing:

start_date (if move was first move of game)
last_date (*)
fen_piece_placement (*)
fen_active_color (*)
fen_castling_availability (if affected)
fen_en_passant_target_square (if affected)
fen_halfmove_clock (if affected)
fen_fullmove_number (if black moved)
pgn_result (if move caused game to end)
pgn_movetext (*)
offer_draw (if affected)
suspended (if affected)

(*) - definitely requires changing

3
Flinx
Re: Chess Module - move take back?
  • 2004/8/26 15:24

  • Flinx

  • Just popping in

  • Posts: 14

  • Since: 2004/6/30


Ok, I see how that works now.

I talked with my other play, and he actually wants to just play it out, if we can star anouther ate the same place.

But this info was valueable...
I think I'll modify the pgn_movetext on the new game to have the starting moves from the previous game, that way we can port it into chessmaster for analisis.

( I have earlier worked with a Perl script that walked the PGN file as how it saves games ( text format ) and I could just delete the move. This is a little more complex, but better. With FEN setup We can play some varients, like Fischer Random or Mongredian Chess or many others. Very Cool. )

-Flinx

Login

Who's Online

192 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 192


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits