saikiran321 / basic-browser-chess

Automatically exported from code.google.com/p/basic-browser-chess
0 stars 0 forks source link

Pawn promotion #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Place a pawn on the enemy's backrank
2. No promotion happens

What is the expected output? What do you see instead?
Expected a confirm prompt to choose promotion, nothing happens.

Please provide any additional information below.
This bug occurs because it is difficult to determine the text value of the
cells, because it renders it as HTML instead of showing it as text, thus
conditions to check the piece type fail. Find a way to see cell value as text.

Original issue reported on code.google.com by Dennis.I.89 on 7 Jun 2010 at 1:27

GoogleCodeExporter commented 9 years ago

Original comment by Dennis.I.89 on 24 Jun 2010 at 4:05

GoogleCodeExporter commented 9 years ago
Try assigning a rendered white and black pawn to variables during initial board 
setup, then use these rendered versions for comparison - should work.

Original comment by Dennis.I.89 on 19 Jul 2010 at 7:40

GoogleCodeExporter commented 9 years ago
See r21

Original comment by Dennis.I.89 on 22 Jul 2010 at 7:59