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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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