Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Connect 4 on a General Board

You can try out the classical connect-4 game at:

http://www.mathisfun.com/games/connect4.html.

While the classical connect-4 game is played on a 67 board, it can in fact be played in any nrRowsnrCols board. In your implementation, the user will specify the number of rows nrRows and the number of columns nrCols. A win is obtained if a player has four consecutive pieces in a row, column, or diagonal.

Your program should implement the game for two human players. Extra credit, up to 20 points, will be given for the design of the graphical interface. You could enhance your graphics by using sounds as well.

For additional extra credit, up to 30 points, you could implement a computer-playing strategy. Extra credit points will be given based on the strength of the computer play.

Alternative Projects

As an alternative to connect-4, you could implement:

  • Sokoban, see http://www.game-sokoban.com/, http://en.wikipedia.org/wiki/Sokoban
  • Breakout, see http://www.play.vg/games/10-Breakout.html
  • Nine Men's Morris, see http://en.wikipedia.org/wiki/Nine Men's Morris
  • Mini-chess, see en.wikipedia.org/wiki/Minichess, the Gardner variant.
  • Backgammon, see http://en.wikipedia.org/wiki/Backgammon

In addition to the interface, the ability of the computer to play the game will be taken into consideration. There will be up to 20 points of extra credits for the graphical design and up to 30 points of extra credit for the strength of the computer play.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9257

Have any Question?


Related Questions in Computer Engineering

Looping structures can be very helpful when coding an

Looping structures can be very helpful when coding an application. These are designed for iterative statements that need to happen multiple times. There are several looping structures you can utilize in C++, For, While a ...

Reflective journal entryneed reflective journal entry on

Reflective Journal Entry Need Reflective Journal Entry on writing a Background Assignment The Topic;: One of the most common questions that new students learning programming students ask is what programming language shou ...

Suppose you take out a loan for 9000 at 12 ordinary

Suppose you take out a loan for $9,000, at 12% ordinary interest. If the amount of interest is $762.00, what is the time period? (Round any fraction to the next higherday)

In fostering understanding of utilizing big-oh notation in

In fostering understanding of utilizing Big-Oh notation in an application, please provide a simple java code segment that illustrates how Big-Oh can be utilized to pinpoint performance problems.

Please explain to me the concept of policing with emphasis

Please explain to me the concept of policing with emphasis on the "leaky bucket" mechanism.

In a survey of 3236 adults 1470 say they have started

In a survey of 3236 adults, 1470 say they have started paying bills online in the last year. Construct a? 99% confidence interval for the population proportion. Interpret the results.

Question suppose an instruction can be carried out in 3

Question : Suppose an instruction can be carried out in 3 stages, the stages taking 3 ns, 7 ns, and 10 ns, respectively. (a) What is the maximum execution rate without pipelining? (b) What speedup is possible with pipeli ...

Question discussion pointdefine and briefly discuss the

Question: Discussion point: Define and briefly discuss the following brainstorming techniques, the delphi technique, brainstorming, or nominal group technique. Please read the above discussion point and write the respons ...

Going to concerts and reading books take time and money

Going to concerts and reading books take time and money. Suppose a book costs $10 and takes 3 hours to read and a concert costs $20 and takes 3 hours. For a person with $80 to spend and 18 hours for these activities: a. ...

How do you apply the five components of the information

How do you apply the five components of the information systems to an information systems application like "online bill pay" system offered by many banks.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As