Hey everyone. I just a few moments ago joined up for some help:
For an Intro to Programming Logic class I have to create a (mostly) functional connect-four program. Despite not being wired for the logical and analytical forms of thinking, I think I am mostly covered with a couple exceptions, presented here:
1.) I have no idea where to begin with regards to creating even a simple AI that can interpret patterns of three, vertically and horizontally, and block them (I am going to disregard diagnals).
2.) I'm also not sure how to bring "gravity" into it. That is, how to state that the game pieces should drop straight down and when necessary, stack.
I have only a basic understanding of C. The most complex program I ever created was one where a user input controlled green square moved around until it moved over a blue thing, then the blue thing made the player guess a number explaining either higher or lower until the player guessed correctly or crashed the program by putting anything other than a numeric value between 0 and 49. So be gentle.
I should note I am going to use a module format. Also: I haven't started the program yet, I'm in the stage of wrapping my mind around the necessary components and their layout.
For an Intro to Programming Logic class I have to create a (mostly) functional connect-four program. Despite not being wired for the logical and analytical forms of thinking, I think I am mostly covered with a couple exceptions, presented here:
1.) I have no idea where to begin with regards to creating even a simple AI that can interpret patterns of three, vertically and horizontally, and block them (I am going to disregard diagnals).
2.) I'm also not sure how to bring "gravity" into it. That is, how to state that the game pieces should drop straight down and when necessary, stack.
I have only a basic understanding of C. The most complex program I ever created was one where a user input controlled green square moved around until it moved over a blue thing, then the blue thing made the player guess a number explaining either higher or lower until the player guessed correctly or crashed the program by putting anything other than a numeric value between 0 and 49. So be gentle.
I should note I am going to use a module format. Also: I haven't started the program yet, I'm in the stage of wrapping my mind around the necessary components and their layout.
