Develop a c program that will simulate the connect four game

Assignment Help C/C++ Programming
Reference no: EM131053864

Project - "Battle Fleet Game"

Background:

Connect four is a two player game in which players take turns dropping alternating colored disc (red and black) into a six row by seven column vertically suspended grid. The object of the game is to connect four single colored discs in a row vertically, horizontally or diagonally.

Task:

Develop a C program that will simulate the Connect Four game. The game should have two modes: player verses player and player verses computer. In the case of player verses computer, there should be three levels of difficulty: easy, intermediate and hard. In the easy level, the computer should just randomly pick places to drop the disc randomly. For the case of intermediate, the computer should attempt to block all horizontal and vertical attempts for victory. The hard level should make the computer defend vertical, horizontal and diagonally paths to victory, while aggressively trying to win the game. By playing offense, the computer should attempt to aggressively win the game.

Display:

The Connect four grid should be displayed with "x" and "o" being used in place of the red and black disc. The grid display should be redrawn after each player takes a turn and should the current state of the game. Once, the game is over. The program should output who won the game or output that the game resulted in a tie.

Attachment:- Project.rar

Reference no: EM131053864

Questions Cloud

How many block transfers are needed to reorganize the file : How many block transfers are needed to reorganize the file?
What current policies relate to this issue : Why you think the issue is important; discuss how common the problem is, and how many people it affects. What current policies relate to this issue.
Develop this as a function of x : That is, what is the value for X when an exhaustive read of the file is more efficient than random X reads? Develop this as a function of X.
Advise magwitch in relation to each of claims against him : Advise as to the liability of the directors both under common law and statute - You are required to advise Magwitch in relation to each of the claims against him.
Develop a c program that will simulate the connect four game : Develop a C program that will simulate the Connect Four game. The game should have two modes: player verses player and player verses computer
Use of rfid technology in global transportation : A. Transportation companies are using RFID today to achieve near 100% shipping, receiving, and order accuracy; 99.5% inventory accuracy; 30% faster order processing and 30% reduction in labor costs.
Hour shift at standard performance : The normal time for a repetitive task that produces two work units per cycle is 3.0 min.The plant uses a PFD allowance factor of 15%. Determine (a) the standard time per pieceand (b) how many work units are produced in an 8-hour shift at standard ..
Describe an efficient way to search for and retrieve records : Describe an efficient way to search for and retrieve records
Determine the standard time per piece : Determine (a) the standard time per piece and (b) how many work units are produced during an 8-hour shift at 100% performance, and the worker works exactly 7.018 hr, which corresponds to the 14% allowance factor. (c) If the worker's pace is 120% a..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Prompts the user to enter time in 12-hour notation

Write a program that prompts the user to enter time in 12-hour notation. The program then outputs the time in 24-hour notation. Your program must  contain  three  exception  classes

  Assuming that the salaries of production managers

A sample of 9 production managers with over 15 years of experience has an average salary of $71,000 and a sample standard deviation of $18,000.

  Write a program that uses the class salariedemployee

Write a program that uses the class SalariedEmployee shown below. Your program is to define a class called Administrator, which is to be derived from the class SalariedEmployee. You are allowed to change private in the base class to protected. You..

  Define the cheetah constructor to accept and initialize

Design and implement a class called Cheetah that contains instance data that represents the cheetah's name, age, weight, length and gender.

  What is the command that you would use to compile the code

Describe the behavior when you compile the program, with no options. What is the command that you would use to compile the code and create the executable "power2"?

  Show the dealer hole card until after the player stands

Do not show the dealer hole card until after the player stands, and do not show the dealer score until after the player stands. After the player stands, playout the dealer according to the rules = 17 stand.

  The "continue" and "break" statements

How are the "continue" and "break" statements different from the "exit" and "return" statements?

  Thenbspproblemwritenbspa programnbspthat translatesnbspto

thenbspproblemwritenbspa programnbspthat translatesnbspto and from morsenbspcode.nbspuse the curl librarynbspand a

  Use numbers 0 through 23 to represent hours

Write a C function seconds_since_jan1() that takes the time as six integer arguments (year, month, day, hour,minute, and second) and returns the number of seconds since the beginning of the year. Use numbers 1 through 12 to represent months. Use numb..

  Overflow in a traditional data type

Wrap around and continue the cancellation until only one element remains. As the Fibonacci number will overflow in a traditional data type, take modulus of the number with 1000000007.

  You are to implement a simple file system with login

you are to implement a simple file system with login authentication and access control. specificallyconstruct a

  Write a c++ function that removes and counts all occurrences

Write a C++ function that removes and counts all occurrences of a given string from such a bag. Your function should return this number.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd