Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could you please show me how to modifiy my javascript code so it looks like the picture. I do not need to enter the 'K'

Could you please show me how to modifiy my javascript code so it looks like the picture. I do not need to enter the 'K' or the 'Q' I just need the chess board and the numbering along the top and down the left side.

Thank you

var i = 0;

var j = 0;

var k = 0;

var l = 0;

var m = 0;

//draw the chess board with the king and queen

document.writeln("

");

document.writeln("

");

for(k=0; k

document.writeln("

");

document.writeln("

");

for(j=0; j

//document.writeln("

");

}

document.writeln("

");

}

document.writeln("

");

document.writeln("

"+k+"

")

}

for(l=0; l

document.writeln("

");

document.writeln("

"+l+"

")

}

for(i=1; i

document.writeln("

");

if((i+j)%2==0)

document.writeln("

");

else

document.writeln("

");

//if(i==queenY && j==queenX)

//document.writeln("

Q

");

//if(i==kingY && j==kingX)

//document.writeln("

K

");

document.writeln("

");

image text in transcribed

| 01 |2 |3 |4 |5 |6 |7 |

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Please help me evaluate this integral. 8 2 2 v - v

Answered: 1 week ago