Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 2.92 KB

W16_lab05.md

File metadata and controls

28 lines (15 loc) · 2.92 KB

David Du, Yuki Mano, ddu82164, yukelele CS56 Lab5 W16

*** for lab07, there is a W16_lab07.md file, which represents the lab07 version of W16_lab05.md ***

(a) The game is a multiple choice command line game where the user has to guess the capital of the state/country correctly given 1 correct choice and 3 random choices. The player can earn points by answering questions correctly.

(b) As a User I can answer a question correctly so that I earn Points.

(c.1) The software does indeed run and each game mode works correctly. There are four game modes with two that deal with US state capitals and two that deal with world capitals.

(c.2) As a User I want to be able to test myself with a mixture of US state capitals and world capitals so that I can test all of my knowledge at once.

As a User I want to be able to pick how many questions I answer so that I set how long the game will be.

As a User I want to be able to use a leaderboard so that I know my highscore in each game mode.

(d) The only problem with the current README.md is checking the spelling of each word (e.g. "10 states/counries") and the grammar. The information already provided is sufficient enough to understand the concept of the game. If anything, we can add information about the additional features that we planned to input in question (c.2).

(e) The build.xml file can be cleaned up as Github can replace the publish and download targets. The compile target seems self-explantory but it could use a brief description. The jar target can also use a brief description.

(f) The current issues are very straightforward and most of the issues can be solved quickly and efficiently. The hardest issues to tackle would be creating a GUI for the game and refactoring the code to make it more efficient. We believe that there are not enough issues as of now to earn 1000 points.

(g) As the project is relatively simple and straightforward, any issues we have coincide with the current issues from the repo. One other issue is that there are text files that are copies and are stored in another directory which are not used. ucsb-cs56-projects#11

(h) The code is relatively simple to read and understand since the code is all contained within one class. In the beginning of the Game.java file, all the accessors and mutators are clearly named and simple. The arraylists read in from the *.txt files to create the Arraylists that the class uses to compare and randomly generate capitals and states/countries. Probably the most important methods are the generate4(Country)Capitals. Most of the methods deal with printing out information or reading in a prompt from the user, but the generate4Capital methods are instrumental in getting both the answer and choices for the player to the prompting methods.

(i) There are JUnit tests, and these tests are enough to compile and play the game. Hence, we believe that no additional test coverage is neccessary.