Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
- Adjusted bonus messages
- Updated the changelog
  • Loading branch information
deanblackborough committed Aug 1, 2022
1 parent 9e65af2 commit 21cbe9e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

The complete changelog for the Costs to Expect REST API, our changelog follows the format defined at https://keepachangelog.com/en/1.0.0/

## [0.15.0] - [2022-08-01]
### Added
- Open games can be deleted.
### Changed
- Adjusted the layout of open games ready for even more buttons.
- Updated the Bootstrap theme, added 'danger'.
- Adjusted a couple of messages relating to the upper bonus.

## [0.14.0] - [2022-07-31]
### Added
- Added a message about your bonus!
Expand Down
12 changes: 6 additions & 6 deletions app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ protected function fetchPlayerScores(
protected function playerBonusMessage(string $game_id, string $player_id, array $upper_section)
{
if (count($upper_section) === 0) {
$message = 'Looking good, you haven\'t messed up yet, only because you haven\'t done anything!';
$message = 'Looking good, you haven\'t messed up yet!';
return $this->playerBonusView($game_id, $player_id, $message);
}

Expand Down Expand Up @@ -232,12 +232,12 @@ protected function playerBonusMessage(string $game_id, string $player_id, array
}

if ($threes_total === 63) {
$message = 'Looking good, you haven\'t messed up yet, you just need three of everything left!';
$message = 'Looking good, you haven\'t messed up yet, three of everything left will do!';
return $this->playerBonusView($game_id, $player_id, $message);
}
if ($threes_total > 63) {
if ((count($dice_scored) + count($dice_scratched)) === 5) {
$message = 'You can still easily get the bonus, three of the last please!';
$message = 'You can still easily get the bonus, three of the last dice please!';
return $this->playerBonusView($game_id, $player_id, $message);
}
$message = 'You can still easily get the bonus';
Expand All @@ -249,20 +249,20 @@ protected function playerBonusMessage(string $game_id, string $player_id, array
}
if ($fours_total > 63) {
if ((count($dice_scored) + count($dice_scratched)) === 5) {
$message = 'You can still get the bonus, four of the last please!';
$message = 'You can still get the bonus, four of the last dice please!';
return $this->playerBonusView($game_id, $player_id, $message);
}

$message = 'You can still get the bonus, you need four of something';
return $this->playerBonusView($game_id, $player_id, $message);
}
if ($fours_total < 63) {
$message = 'Scoring four of everything won\'t help!';
$message = 'Scoring four of everything won\'t help you!';
return $this->playerBonusView($game_id, $player_id, $message);
}

if ($threes_total < 63) {
$message = 'Scoring three of everything won\'t help!';
$message = 'Scoring three of everything won\'t help you!';
return $this->playerBonusView($game_id, $player_id, $message);
}
}
Expand Down
4 changes: 2 additions & 2 deletions config/app/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
'item_subtype_id' => env('ITEM_SUBTYPE_ID'),
'cookie_user' => env('SESSION_NAME_USER'),
'cookie_bearer' => env('SESSION_NAME_BEARER'),
'version' => '0.14.0',
'release_date' => '31st July 2022'
'version' => '0.15.0',
'release_date' => '1st August 2022'
];

0 comments on commit 21cbe9e

Please sign in to comment.