Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

trying to create an 8x8 chessboard on visual basic studio ?

Abdullah MahmoudAbdullah Mahmoud EgyptMember Posts: 1
edited May 4 in Beginner VB

dim chessboard(7,7) as integer
for i =0 to chessboard.getupperbound(0)
for j =0 to chessboard.getupperbound(0)

    if  (i+j) mod 2 = 0 then

        console.out.Write(chessboard(i,j)="B")
    else
        console.out.writeline(chessboard(i,j)="W")
    end if

next

next
console.in.readline()

Sign In or Register to comment.