Question: [ Chess Board with Alternating _ Colors ] Write a program that draws an 8 8 chess board, every 5 0 0 milliseconds, change the

[Chess Board with Alternating_Colors]
Write a program that draws an 88 chess board, every 500 milliseconds, change the color of the colored squares and re-display the board. Continue
until you have shown the board 16 times, using all possible 4-bit background colors. (The white squares remain white throughout.)
You can use the SetTextColor and Gotoxy procedures from the Irvine32 library. Create PROTO declarations for all procedures you create, use the
PROC directive with parameter lists when declaring procedures, and use INVOKE to call each procedure.
Suggested working steps - break into couple procedures:
In the main procedure calls PrintBoard 16 times every 0.5 second
PrintBoard: prints the whole board by passing the initial color. It will use Gotoxy to move the curser at the beginning of the screen and call
Print_Row and update the displayed colors in a loop
PrintRow: prints the colored and white blocks (call WriteColorBlock) by turns in a loop
WriteColorBlock: Write a block of 2 side-by-side characters (y=2x) with desired background color
Those procedures can be used to create the multi-moduleproject (extra credit part)
Don't use CIrscr, it will reprint the background of the screen.
Submit the source file (Assignment14.asm) and sample screenshots.
Sample output in picture.
Project is already set up with Irvine32 library linked.
Please give me a code that will setup without errors so that I can give you a thumbs up thanks.
[ Chess Board with Alternating _ Colors ] Write a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!