COMP41670: A feature whereby the Backgammon board is displayed with the Checkers in their initial positions: Software Engineering Assignment, UCD, Ireland
University | University College Dublin (UCD) |
Subject | COMP41670: Software Engineering |
Sprint 1: Display & Rolls
As a group, implement and verify a Java program with the following features. Use the console for input and output.
A feature whereby the Backgammon board is displayed with the Checkers in their initial positions.
A feature that prompts the players to enter their names. Their names should be used in later prompts.
A feature that allows the players to take turns rolling the dice. The players should be prompted to enter a command. Entering the “roll” command should cause the result of a two-dice roll to be displayed on the board panel and reported in the log panel. The dice should be generated randomly.
A feature whereby a “quit” command causes termination of the program.
Sprint 2: Game
As a group, implement and verify a Java program with the following features.
A feature whereby when the game starts, the program rolls one die for each player to determine which player goes first. The result is used for the first move.
A feature whereby the current player is indicated on the display.
A feature that displays the pip number of every point on the board. The pip numbers should change depending on which player’s turn it is.
A feature that lists all legal moves after the dice roll and allows the user to enter a letter code for the desired move. The board should be updated to reflect the move selected. All hits and bears should be applied. All rules of backgammon should be considered.
A “pip” command reports the pip count for both players.
A “hint” command which lists all allowed commands. The list should exclude the commands for testing.
A feature whereby the syntax of the commands entered is checked. An appropriate error message is generated if the command is invalid.
A feature that detects when the game is over and announces the winner of a game.