Open vinitkumar opened 11 years ago
This is the procedure to initialize a new game space with specified Height and width
procedure InitializeGameSpace(Height,Width)
Initialize Array of pointer to Boolean array of size 2*Height
Initialize Generic list <ID,int>
for(i = 1 to 2*Height)
if(i is even)
GameSpace[i] = Initialize new Boolean Array Of Size Width
else
GameSpace[i] = Initialize new Boolean Array of Size Width - 1
End Procedure
This procedure will take an input from user and update the game space
Please explain any code/pseudocode with a little text so that everyone could understand if he wants to.
Everyone please respond with what basic knowledge is required to get started. Reference might include books, blog posts anything.