Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WRITE C++ CODE FOR THE FOLLOWING PROGRAM AND DO DISPLAY THE OUTPUT I.E THE GAME OF LIFE WHICH is a two player game, played on

WRITE C++ CODE FOR THE FOLLOWING PROGRAM AND DO DISPLAY THE OUTPUT I.E THE GAME OF LIFE WHICH is a two player game, played on a 2-D board, in which both players try to reach the goal state (middle cell of Board) with maximum points and money. BY using all the requirements of the program as listed below

note: an interactive graphical user interface for game is compulsory for the game Design an interactive graphical user interface for game. Add an extra Level in your Game in which Board size will grow to 10 by 10 and similarly more hurdle types and helping objects (of your choice) will be added. You also need to design rules for them. Moreover you can add time limit for buying hurdles and helping objects for players, so that if they do not make decision in given time, then they will not be promoted to next cell.

PROVIDE PROPER INDENTATION AND COMMENTS WITH YOUR CODE

PLEASE DO ATTEMPT ONLY IF YOU ARE GOOD IN UNDERGOING THE PRGRAM REQUIREMENTS FOR TE ABOVE MENTIONED GAME

PROGRAM REQUIREMENTS : ALL ARE COMPULSORY FOR THE ABOVE GAME

Rules of game are listed here. 1. Winner/Loser: The winner of this game is decided on the basis of two things number of points and goal. If a player reached at goal first but with less number of points, then game will draw. A winner must reach to the goal state with more points. 2. When game is started both players will be given same amount of money and points. Whenever a player will buy and place hurdle in path of other player the game board should be updated and hurdle should be visible on board. 3. Whenever a player buy a helping object it must be added in his box. If a player found an object (coins) in any cell he can put that in his box, and gain points. Once a player picked an object, then it will be removed from that cell and game board should update accordingly.

Other Requirements: 1. Board: Your game should support dynamic (odd) size of board 77 (49 cells). On completion of one game you can ask user to play new game or exit. 2. The initial money for each player will be 15 gold and 20 silver coins. 3. Objects: Each time a new game is started, number and placement of objects gold or silver coins will be random. You can place minimum 10 and maximum 15 objects on the 77 (49 cells) board. 4. User Interaction: Your game should be user interactive and should provide proper options to player, which he can use for every move. Like pick an object from cell, kill the snake, use an object, buy hurdle or buy helping object etc. Similarly you will update both users boxes, money and points information accordingly. 5. A player can stop game in middle and can continue next time with that game or new game. So you need to do filing for saving Game state.

EACH OF YOUR EFFORT WILL BE ENCOURAGED WITH AN OPEN HEART BY REWARDING YOU WITH A THUMBSUP AND AN ENCOURAGING COMMENT

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions