Re: [P4wn-chess] (no subject)
Brought to you by:
dbagnall
From: Douglas B. <do...@ha...> - 2013-03-29 00:48:04
|
On 23/01/13 (yes, months ago, sorry), Norbert Thomas wrote: > How can I let the program show the black pieces at bottom right from > the starting position when loading? > Which code must I change in engine.js to achieve this? You wouldn't change engine.js, and there sadly isn't a configuration variable to do that. If you were going to change it in display.js, you would do this: --- a/src/display.js +++ b/src/display.js @@ -249,7 +249,7 @@ _p4d_proto.write_board_html = function(){ for (var y = 9; y > 1; y--){ var tr = p4d_new_child(tbody, "tr"); for(var x = 1; x < 9; x++){ - var i = y * 10 + x; + var i = 119 - (y * 10 + x); var td = p4d_new_child(tr, "td"); but it is probably wiser to replace that function in your html file, as attached. cheers, Douglas |