Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Jwen/customize game length #236

Merged
merged 23 commits into from
May 4, 2022
Merged

Jwen/customize game length #236

merged 23 commits into from
May 4, 2022

Conversation

jiabaow
Copy link
Collaborator

@jiabaow jiabaow commented May 3, 2022

No description provided.

@jiabaow jiabaow self-assigned this May 4, 2022
@jiabaow jiabaow linked an issue May 4, 2022 that may be closed by this pull request
@jiabaow jiabaow marked this pull request as ready for review May 4, 2022 12:17
@@ -46,11 +45,27 @@ class GameSetupActivityTest {
Intents.release()
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a general comment for the file. It's more readable if you put empty lines between new logic. For example putting an empty line between "perform" statements and the actual test like "hasComponent" or "matches"

Copy link
Collaborator

@laurislopata laurislopata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Godd job just a small comment about the test file

@MaximeZmt MaximeZmt self-requested a review May 4, 2022 20:39
Copy link
Owner

@MaximeZmt MaximeZmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice work, here are some small comments. 👍

Comment on lines 81 to 90
"One" -> gameManager.setGameSize(1)
"Two" -> gameManager.setGameSize(2)
"Three" -> gameManager.setGameSize(3)
"Four" -> gameManager.setGameSize(4)
"Five" -> gameManager.setGameSize(5)
"Six" -> gameManager.setGameSize(6)
"Seven" -> gameManager.setGameSize(7)
"Eight" -> gameManager.setGameSize(8)
"Nine" -> gameManager.setGameSize(9)
"Ten" -> gameManager.setGameSize(10)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may use string.xml for storing these. If one day we want to translate the app, it would be necessary to do it

@@ -30,67 +29,85 @@ import retrofit2.Response
class GameSetupActivity : AppCompatActivity(), AdapterView.OnItemSelectedListener {
var difficulty = "Easy"
var game = "local_buzzer"
lateinit var gameManager: GameManager;
var gameSize = "One"
lateinit var gameManager: GameManager;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
lateinit var gameManager: GameManager;
lateinit var gameManager: GameManager

why a ";" ? we never used them in whole code

Copy link
Owner

@MaximeZmt MaximeZmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codeclimate
Copy link

codeclimate bot commented May 4, 2022

Code Climate has analyzed commit c6b07ed and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 67.3% (80% is the threshold).

This pull request will bring the total coverage in the repository to 84.1% (-1.0% change).

View more on Code Climate.

@MaximeZmt MaximeZmt merged commit 781733c into main May 4, 2022
@MaximeZmt MaximeZmt deleted the jwen/customize-game-length branch May 4, 2022 21:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

customizable number of songs per game set (#212)
3 participants