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

  Use the top-down modular approach to design program

Use the top-down modular approach and pseudocode to design a suitable program to solve it. Where appropriate, use defensive programming techniques.

  Write a function that accepts an int array

Element 0 of the argument arrayshould be copied to element 1 of the new array, element 1 of the argument array should be copied to element 2 of the new array, and so forth. The function shouldreturn a pointer to the new array.

  Feature for entreing information about a new train

Write a program in C++ to maintain the information for a Train station regarding the arrival and departure of trains in that station. Program should have the feature for entreing information about a new train arrived or departed at any point of ti..

  What are a class and a structure?

What are a class and a structure?

  Program to decode a secret message

Write a program that decodes a message that was encoded using a random key. These keys work similar to a magic decoder wheel (where 'A' encodes to 'F', 'B' encodes to 'G', 'C' encodes to 'H', etc)except there is a random mapping from one letter to..

  Design and implement a c program and structure diagram for

design and implement a c program and structure diagram for the subsequent specification.show writing and calling

  Design customized mailing lists for marketing department

Marketing department requires to be able to design customized mailing lists, to send different messages to different types of donors. What system will best meet these requirements?

  Write in c++. read an inputfile.txt

write in C++.  read an inputFile.txt which contains integers that are virutal addresses, and I am suppossed to translate that into physical addresses using a page table and a transition lookaside buffer

  Write a pseudocode function in terms of adt appointment

Write speci?cations for a method within Date that advances any given date by one day. Include a statement of purpose, the preconditions and postconditions, a description of the arguments, and a description of any return value.

  What is the output

Suppose that x and y are int variables, z is a double variable, and ch is a char variable. Suppose the input statement is.

  Which respectively represent the name of the flower

Write a C++ class, Flower, that has three member variables of type string, int, and float, which respectively represent the name of the flower, its number of pedals, and price.

  Write a full program that implements the aggregation concept

Write a full program that implements the aggregation concept for the Mail Message, Header , Body and Attachment classes.

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