Working on TODO: the place should be 1 if the player moves forward 1 step. Wrote an assertion.
Finished TODO: the place should be 1 if the player moves forward 1 step.
Working on TODO: the place should be 0 if the player moves forward 12 steps. Wrote an assertion.
Finished TODO: the place should be 0 if the player moves forward 12 steps.
Working on TODO: the category should be Pop if the player moves 12, 4 or 8 steps. Wrote an assertion.
Finished TODO: the category should be Pop if the player moves 12, 4 or 8 steps.
Extracted variable category in a test to remove duplicate code.
Failed a category test since method Player.moveForwardSteps() is cumulative instead of restarted every time. Will change the category tests.
Updated all tests and TODOs about places to use the concept of place. Finished 2 TODOs about Pop and Science category.
Finished 2 TODOs about Sports and Rock categories.
Cleaned up unused imports.
Extracted method logToAFile() and prepareQuestions() in the constructor of Game.
Removed unused method Game.howManyPlayers().
Replaced nested conditional with guard clauses in method Game.roll().
Introduced explaining variable in method Game.wasCorrectlyAnswered().
Introduced explaining variable in method Game.wrongAnswer().
Extracted constants of categories in class Player.
Created test class QuestionMakerTest and moved all question-related tests into it.
Created test class PlayerTest and moved all place- and category-related tests into it.
Moved initialization code to @Before in test class GameTest.