https://github.com/stucom-pelai/mp0492_git_java_football
https://github.com/stucom-pelai/mp0492_git_java_football
dam2 git java project template
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stucom-pelai/mp0492_git_java_football
- Owner: Stucom-Pelai
- Created: 2025-08-01T11:20:28.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-08-02T05:31:07.000Z (11 months ago)
- Last Synced: 2025-08-02T08:20:43.033Z (11 months ago)
- Topics: dam2, git, java, project, template
- Language: Java
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Goal
* Practice git commands and branching strategy
* Read class diagrams
* Review inheritance concepts
* Review composition/agregation/association relationship
* Teamwork
# Class diagram
```mermaid
classDiagram
class Game {
-field: Field
-date: Date
-ball: Ball
-teams: ArrayList
+start()
}
class Field {
-size: int
+light()
}
class Team {
-name: String
-coach: Coach
-players: ArrayList
+play()
}
class Ball {
-material: String
+move()
}
class Person {
-age: int
+run()
}
class Player {
-position: String
+passBall()
}
class Coach {
-style: String
+train()
}
class Goalkeeper {
-globes: boolean
+block(ball: Ball)
}
class Defender {
-mark: boolean
+steal(ball: Ball)
}
class Midfielder {
-vision: boolean
+organize()
}
class Forward {
-killer: boolean
+drible()
+kick(ball: Ball)
}
Person <|.. Player : extends
Person <|.. Coach : extends
Player <|.. Goalkeeper : extends
Player <|.. Defender : extends
Player <|.. Midfielder : extends
Player <|.. Forward : extends
Game "1" *-- "1" Field: part-of
Game "1" *-- "1" Ball: part-of
Game "1" o-- "2" Team : has-a
Team "1" *-- "11" Player : part-of
```
# Implementation
1. Create repository using this template to group git account
2. Check Game Class diagram and current implementation to identify what is pending to do
3. Assign every issue to a group member
4. Create a branch for each issue
5. Clone repository in local environment
6. Check out to corresponding branch
7. Code the change described in issue
8. Push from your local environment to your repository
9. Create a pull request from member branch to master branch
10. Resolve conflicts(if apply)
11. Merge
12. Review if issue is closed