SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Health & Medical Posted 12 Oct 2017 My Price 10.00

Anyone help with this assignment, thank you so much for your help ahead of time?

COMP 2150 – Fall 2017Project 1: Othello(75 points)Background InformationOthello (also known as Reversi) is a two-player game played on an 8x8 board similar to that used in chess or checkers.Each player chooses a color (black or white), and the objective of the game is to accumulate as many pieces of your owncolor as possible.How to playThe game starts in the following configuration:Players alternate turns, with black moving first.A move consists of placing a piece of your color on the board in such away that itoutflanksone or more of your opponent’s pieces.Outflanking means creating a straight line of youropponent’s pieces that are bordered on both ends by your pieces.This may be done horizontally, vertically, or diagonally.Outflanking your opponent’s pieces flips them to your color.If a player cannot outflank any of his/her opponent’s pieces during a turn, s/he must forfeit that turn.A player may not“pass” his/her turn if any valid moves exist.The game ends when neither player is able to make a valid move.(This is guaranteed to happen when the board is full,but it may occur before that.For example, if one player manages to flip all of his/her opponent’s pieces before the boardis full, the opponent is left with no valid moves.)The winner is the player with the higher number of pieces on the board.Number of People: Up to 2.If you work with someone else, include both your name and your teammate’s name onall source code files.Only one person needs to submit the final product to eCourseware, but include a note with thesubmission that lists both of your names.Feel free to ask me for help, or visit the Computer Science Learning Center(http://www.memphis.edu/cs/current_students/cslc.php).Due: Friday, Oct. 13 by 11:59 pmSubmission: Zip all of your Java source files (you can zip the entire project folder if using an IDE) into a single fileand upload it to the proper folder in the eCourseware dropbox athttps://elearn.memphis.edu.Coding Style: Use consistent indentation.Use standard Java naming conventions forvariableAndMethodNames,ClassNames,CONSTANT_NAMES.Include a reasonable amount of comments.Grader: Lasang Tamang (ljtamang@memphis.edu).Questions about grading?Please contact him first!
Background image of page 1
Examples of outflankingA single move may outflank more than one line of pieces.For example, the following diagrams show what happens whenwhite places a piece that outflanks three lines of black pieces.Outflanking applies only to the closest pair of bordering pieces.In the diagram below, black’s move will flip only thewhite piece labeled 1, not the other two white pieces.Outflanking cannot be “chained,” as illustrated in the diagrams below.Black’s move will flip only the vertical whitepieces, not the horizontal ones.(Diagrams blatantly stolen – ahem, “borrowed” – fromhttp://www.rainfall.com/othello/rules/othellorules.asp, which nolonger exists!)The AssignmentWrite a text-based implementation of Othello.Your program should start by displaying the initial configuration of theboard as drawn above.Then allow the two players to alternate turns by placing pieces onto the board.If a player cannotmake a valid move, the game should automatically forfeit the turn to the other player.The game should continue untilneither player can make a valid move.Once this occurs, determine and display the winner of the game.To make things easier for you (and for the TA!), I’ve already developed a basic class design for you.Your project mustinclude the classes listed on the next page.
Background image of page 2
Class DesignATileclass to represent a single tile on the Othello board.This class should include (but is not limited to) thefollowing parts:oInstance variablesState of the tile – it can be empty, black, or whiteoMethodsFlipping the tile to the opposite colorAtoStringmethod that returns how the tile should be displayedAGameBoardclass to represent the entire set of 64 tiles.GameBoard is used to store the current state of thegame.This class should include (but is not limited to) the following parts:oInstance variablesA 2-D array ofTileobjectsThe number of rows and columns on the board (both of these will be 8 for this game, but youshould write your code in such a way that it can easily be changed to other dimensions)oMethodsA method that counts the pieces of a specific color present on the boardA method that places a piece of a specific color at a specific location, flipping any appropriatepieces of the opposite colorA method that determines whether a valid move exists on the board for a specific colorA method that determines the current state of the game (still in progress, victory by black, victoryby white, or a tie)AtoStringmethod that returns how the board should be displayedAnOthelloclass that serves as the main client program for the game.This class should include (but is not limitedto) the following parts:oInstance variablesAGameBoardobject to store the state of the gameAScannerobject to read user inputoMethodsAmainmethod that is executed to start the gameNote that all user input should be located only in theOthelloclass.The idea is that the core game objects (TileandGameBoard) should be independent of the game’s user interface.If you wanted to make a graphical version of Othello,you’d be able to use the existing classes and make changes only to theOthelloclass!Implement error checking on all user inputs, to the extent that was covered in COMP 1900.For example, when a playermakes a move, you should prevent things like:Entering coordinates that are outside of the boardEntering coordinates that already contain a pieceEntering coordinates that would not result in any outflanking (this is not a valid move)Need Help?Although you may choose to work with one partner, do not consult with other students on this assignment. If you findyourself stuck, please feel free to contact me (Top) anytime.The Computer Science Learning Center in Dunn Hall 208 isalso open, where you can get help from other students.Hours are posted athttp://www.memphis.edu/cs/current_students/cslc.php.Start working on this project early!It’s not a terribly long project, but it requires significantly more code than a regularhomework assignment.If you run into any challenges, it often helps to spend some time mulling it over in your head.You won’t have this luxury if you don’t start until the night before it’s due!
Background image of page 3

Attachments:

Answers

(5)
Status NEW Posted 12 Oct 2017 06:10 AM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)