gotchacode / connect-the-dots

Connect the dot game in canvas.
MIT License
1 stars 5 forks source link

References about algorithms and data structures required #3

Open vinitkumar opened 11 years ago

vinitkumar commented 11 years ago

Everyone please respond with what basic knowledge is required to get started. Reference might include books, blog posts anything.

ParthDesai commented 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

vinitkumar commented 11 years ago

Please explain any code/pseudocode with a little text so that everyone could understand if he wants to.