Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How are you supposed to start it? Because I am completely lost and need help This assignment is a console application. The graphic below is

image text in transcribed

image text in transcribed

How are you supposed to start it? Because I am completely lost and need help

This assignment is a console application. The graphic below is for illustrative purposes only. The real game doesnt look this good (i.e. don't sue me). Your mission, if you accept it, is to write complete a two-player game program. Create a Game class that has an array of 11 characters as a private variable. The constructor must create the array and fill it with spaces (ie.). - The display method must print the array using Console.Write and WriteLine. The move method accepts - a char that represents the player (B' for blue, 'R' for red - a position on the board that should be checked 0 and 11) The full method returns true if all the spaces on the board are occupied - The score method computes a score: 4 points for two in a row, 6 points for three in a row, 8 points for four in a row, etc Examples If the board is RRRBBBBRBRB, then red has 6 points, blue has 8 points If the board is RBBRRBBBRRR, then red has 10 points, blue has 10 points Here is the main routine that runs the program. You must write the Game class class Program

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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions