Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MinusKube authored Jun 10, 2020
1 parent 4b1afc5 commit a7f2cf8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ When you have your board, you can do whatever you want with it:
// If there is already a line with this score, it will replace it.
board.set("Test Score", 5);

// Set all the lines
// This will remove all the existing lines then set the new ones
board.setAll(
"First Line",
"Second Line",
"Third Line",
"Fourth Line",
"Fifth Line"
);

// Get a line from its score
board.get(5);

Expand All @@ -47,6 +57,9 @@ board.remove(5);
// Change the name of the board
board.setName("My New Scoreboard");

// Clear the board
board.clear();

// Delete the board
board.delete();
```
Expand Down

0 comments on commit a7f2cf8

Please sign in to comment.