Ask Question, Ask an Expert

+1-415-315-9853

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

In an 80211 network three stations a b and c are contending

In an 802.11 network, three stations (A, B, and C) are contending to access the medium. The contention window for each station has 31 slots. Station A randomly picks up the first slot; station B picks up the fifth slot; ...

In this problem we will examine why techniques that work

In this problem, we will examine why techniques that work nicely for error correction codes are not suited as cryptographic hash functions. We look at a hash function that computes an 8-bit hash value by applying the fol ...

First questionwhere would you like to be in 5 years 10

First Question Where would you like to be in 5 years, 10 years? What impact do you anticipate information assurance will play in your education and career? The self-reflection should be a minimum of 1 full page, Times Ne ...

Computing modular exponentiation efficiently is inevitable

Computing modular exponentiation efficiently is inevitable for the practicability of RSA. Compute the following exponentiations xe mod m applying the squareand-multiply algorithm: After every iteration step, show the exp ...

The team must design a global organizations network this

the team must design a global organization's network. This organization has approximately 600 employees distributed evenly among six different departments. Its headquarters is located in Los Angeles, CA, and it has major ...

1 design and implement the iterator class setiterator for

1. Design and implement the iterator class SetIterator for use with the Set ADT implemented using a list. 2. Design and implement the iterator class MapIterator for use with the Map ADT implemented using a list. 3. Devel ...

1 some have sounded an apocalyptic voice as far as finding

1. Some have sounded an apocalyptic voice as far as finding solutions to system vulnerabilities. Should we take them seriously? Support your response. 2. What is innovative misuse? What role does it play in the search fo ...

1 mapleland is considering expanding the mfn to include

1. Mapleland is considering expanding the MFN to include wireless access for its residences. What additional investigation will you do to prepare for a citywide wireless network? 2. What security concerns do you have for ...

Draw an entity relationship diagram for flapper

Draw an entity relationship diagram for Flapper Dumpling

In el farol extension 3 we now graph the actual award

In El Farol Extension 3, we now graph the actual award distribution using a histogram. Another common way of displaying wealth distributions like this is to use a cumulative distribution function, where the y-value at an ...

  • 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

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen