Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#include house.h / * Updates the graphics for the window @ coordinates ( x , y ) to match the * ` state `
#include "house.h
Updates the graphics for the window @ coordinates x y to match the
state array.
This function modifies the house array by updating the characters
inside the window located at the zero indexed coordinates x y to
match the window's state in the state array. If the window's
state is then the window is filled with the # character.
Likewise, if the window's state is in the state array, the
window is filled with the character.
Parameters:
house pointer to characters representing the house
state pointer to the game state array
x the horizontal coordinate of the window for which the
state will be updated zero indexed, with being
the left column and being the right column
y the vertical coordinate of the window for which the
state will be updated zero indexed, with being
the top row and being the bottom row
void windowupdategraphics char house const int state int x int y
Step : Write this function!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started