The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
JAVA PROGRAMMING ONLY
Please provide an internally documented JAVA source for the connectFour file. Thanks
Â
Assignment 10: Connect FourCPSC 1150-006/007, Fall 2016Instructor: Adina GoldbergLangara CollegePreparationYou are expected to be familiar with the following textbook sections and lecturesbeforebeginningthe assignment. You are required to read the assignment in advance.You are required to submitexternal documentation with your code. You are also required to write doc comments (Javadoc)for each method and for the class itself.Textbook sections•8.2-8.4Most relevant lectures•L11 (Javadoc), L17Exercises1. Read through the assignment.2. Think about how to store the current state of a Connect Four game using a 2D array.3. Figure out how to check if a win or a draw has occurred in the game, by checking your 2Darray.4. Make a top-down design diagram forConnectFour.IntroductionYou may work in pairs. You will program a two player game called Connect Four. From Wikipedia:Connect Four [.. . ] is a two-player connection game in which the players ±rst choosea color and then take turns dropping colored discs from the top into a seven-column,six-row vertically suspended grid. The pieces fall straight down, occupying the nextavailable space within the column. The objective of the game is to connect fourof one’s own discs of the same color next to each other vertically, horizontally, ordiagonally before your opponent.Specifcations•Write a program calledConnectFour.•Your program should allow two (human) players to play the game Connect Four.•The program should repeat the following steps until a win or a draw:1. Prompt the correct player to drop a disk into a column from 0-6. Accept and validateuser input.1
Attachments:
-----------