Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dice.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public int roll() {

// roll the die n times and print the values
public void rollMultiple(int n) {
for (int i=1; i<n; i++) {
for (int i=0; i<n; i++) {
System.out.print(roll() + " ");
}
}
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ This is a Java program for rolling dice.
The program has known errors.

## Purpose
This is an exercise in using _GIT_ to fix errors and trace the changes.
This is an exercise in using github to fix errors and trace the changes.

# Contents
This project contains source code for the die rolling program and a JUnit test that tests different aspects of the program. For example, the test tries to roll the die 60.000 times to see if we get expected random results.
A branch called BugFixes contains code for a working version of the program. This branch is later merged to the master-branch.
Hej med dig.