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

Partial online multiplayer game implementation #204

Merged
merged 14 commits into from
Apr 29, 2022

Conversation

laurislopata
Copy link
Collaborator

@laurislopata laurislopata commented Apr 27, 2022

In this PR I started to implement the online buzzer game. For now, I synced up user connection to one party to demonstrate that it prints their emails on the screen. Will continue working on this next sprint

@laurislopata laurislopata changed the title Added basic join room implementation Partial online multiplayer game implementation Apr 27, 2022
@laurislopata laurislopata marked this pull request as ready for review April 28, 2022 22:29
}
}

private fun switchToRoom(roomName: String, createRoom: Boolean) {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 3 locations. Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Apr 28, 2022

Code Climate has analyzed commit 570bc7d and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 1

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

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

View more on Code Climate.

android:layout_height="wrap_content"
android:layout_marginTop="440dp"
android:ems="10"
android:hint="Party Name"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hardcoded string here. It's fine overall, but please remember to fix it in your next PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Noted, I will fix it in the next PR

Copy link
Collaborator

@Tsathogguaa Tsathogguaa left a comment

Choose a reason for hiding this comment

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

Great work! There was just one comment I made, but it's not at a level where it requires an instant change. Good job!

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.

Approved because it's late in the week and you can address the issues next week.
Good work 👍

import android.widget.Button
import android.widget.EditText
import ch.sdp.vibester.R

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
/**
* What is the purpose of the class ???
*/

Comment on lines +18 to +20

@AndroidEntryPoint
class PartyRoomActivity : AppCompatActivity() {
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
@AndroidEntryPoint
class PartyRoomActivity : AppCompatActivity() {
/**
* What is class purpose
*/
@AndroidEntryPoint
class PartyRoomActivity : AppCompatActivity() {

Comment on lines +3 to +4

class PartyRoom() {
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
class PartyRoom() {
/**
* DOCSSSS ?
*/
class PartyRoom() {

Comment on lines +2 to +3


Copy link
Owner

Choose a reason for hiding this comment

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

Maybe make it serializable

@laurislopata
Copy link
Collaborator Author

Thank you for the comments, I'll add it in the next PR

@laurislopata laurislopata merged commit 69cc590 into main Apr 29, 2022
@laurislopata laurislopata deleted the laurislopata/create-party-rooms branch April 29, 2022 07:41
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.

3 participants