How do you make a 8x8 chess board (beginner) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do you make a 8x8 chess board (beginner)

26th Jan 2017, 1:30 AM
kelogames
kelogames - avatar
5 Answers
26th Jan 2017, 5:20 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
Look at @ValentinHacker's codes. There's a chess board there.
26th Jan 2017, 2:30 AM
Hatsy Rei
Hatsy Rei - avatar
0
This would be a simple nested for loop for the display. sideSize = 8; for (var x = 0; x < sideSize; x++){ for (var y = 0; y < sideSize; y++){ //code to display square here } } However the easiest for a Web page would really just be a html table.
26th Jan 2017, 2:29 AM
Kevin Gilkey-Graham
Kevin Gilkey-Graham - avatar
0
Thanks to all that helped
26th Jan 2017, 11:08 AM
kelogames
kelogames - avatar
21st Jul 2020, 3:34 AM
shubham kumar
shubham kumar - avatar