Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaguestatistics #1082

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d35497d
Added the project DTR to the README
DAVISEVAN Jun 4, 2024
73c056e
Adds a basic skeleton for classes and adds test files and runner file
DAVISEVAN Jun 4, 2024
4076a8e
Adds the rest of the files for skeleton
DAVISEVAN Jun 4, 2024
3ca54a7
Merge pull request #1 from DAVISEVAN/dev-branch
DAVISEVAN Jun 4, 2024
3482429
Merge pull request #2 from DAVISEVAN/evan-branch1
DAVISEVAN Jun 4, 2024
b47b70b
README for Iteration 1 complete
litobot Jun 5, 2024
101b4c7
Merge branch 'dev-branch' of github.com:DAVISEVAN/futbol into dev-branch
litobot Jun 5, 2024
e6082ce
add skeleton methods for StatTracker
DAVISEVAN Jun 5, 2024
81758b9
Added pry and class files to spec_helper
DAVISEVAN Jun 5, 2024
edb121e
Added attributes to classes
CPPittman Jun 5, 2024
1a3a2e4
Merge branch 'main' of github.com:DAVISEVAN/futbol
CPPittman Jun 5, 2024
3f620df
Merge pull request #3 from DAVISEVAN/evan-branch2
DAVISEVAN Jun 5, 2024
4b18677
added attributes and initialized them
CPPittman Jun 5, 2024
0bb6588
added initialize test for Game class
CPPittman Jun 5, 2024
9ee5afb
added initialize test for Team class
CPPittman Jun 6, 2024
5ca1b89
intitialize method for Team class and initialize test for Game_team
CPPittman Jun 6, 2024
f1ac2ca
fix indention
CPPittman Jun 6, 2024
f6bfbbd
indentation fix
CPPittman Jun 6, 2024
f7e53d4
Merge pull request #4 from DAVISEVAN/futbol_cp2
DAVISEVAN Jun 6, 2024
2e2767b
Adds initialize tests for StatTracker class
DAVISEVAN Jun 6, 2024
99e4c28
Merge pull request #5 from DAVISEVAN/evan-branch3
CPPittman Jun 6, 2024
3a97b6b
fixes to syntax issues in class and test files
DAVISEVAN Jun 6, 2024
5e2982d
Merge pull request #6 from DAVISEVAN/evan-branch4
DAVISEVAN Jun 6, 2024
2d1c223
Added fixes to data types in classes and tests, changed StatTracker n…
DAVISEVAN Jun 6, 2024
61397fa
added stattracker test file with test data and comments for impliment…
DAVISEVAN Jun 7, 2024
9ea4de7
Merge pull request #9 from DAVISEVAN/evan-branch5
DAVISEVAN Jun 7, 2024
5b6ca66
added tests for methods in stat_tracker_methods.rb and added statisti…
DAVISEVAN Jun 7, 2024
65fc6fc
Merge pull request #11 from DAVISEVAN/evan-branch6
litobot Jun 7, 2024
7dd46ca
Fixed some duplicated and unneeded tests
DAVISEVAN Jun 9, 2024
b036bf6
Cleaning up for better organization
DAVISEVAN Jun 9, 2024
bde11dc
Merge pull request #12 from DAVISEVAN/evan-branch10
DAVISEVAN Jun 9, 2024
c6ee3d8
Fix Game Statistics in all tests passing for this section now
litobot Jun 9, 2024
30ec377
Merge pull request #13 from DAVISEVAN/lito_branch4
DAVISEVAN Jun 9, 2024
0e2a530
Added fixture files and new tests
DAVISEVAN Jun 9, 2024
29317c4
Merge branch 'dev-branch' into evan-branch14
litobot Jun 9, 2024
bfbbf7f
Merge pull request #14 from DAVISEVAN/evan-branch14
litobot Jun 9, 2024
32e4a8f
Implement league stats
sidswaminathan1989 Jun 10, 2024
5a4e436
test
sidswaminathan1989 Jun 10, 2024
53fa594
Merge branch 'main' into leaguestatistics
litobot Jun 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Futbol
Project 4 - Lito, Cameron, Sid, Evan
DTR [DTR](https://docs.google.com/document/d/1hHF-6C9NH6eQKQOEIICRtCwc-boXQq7oGNkfhPsIKG8/edit?usp=sharing) Futbol project.

Starter repository for the [Turing School](https://turing.io/) Futbol project.
Our group has decided to meet regularly on weekdays at 08:30 MST before class to fill each other in on progress and discuss the next steps. We plan on using that time to cover anything that came up over the last night of work. We will update our checklists accordingly and reevaluate what the new priorities are. We are keeping meeting minutes each time we're all together in case we forget anything and to track progress.

We began using a simple Google doc to get the ball rolling with organization, but it seems like everyone is comfortable bringing a Trello workspace onboard as well. We have successfully outlined the first several steps and have delegated them evenly to each member. We have our "Swim Lanes" set up on Trello and are learning how to make the most of its tools. We have a color-coded tagging system to know who's working on what task at a glance. We have a Draw.io document to help visualize the structural breakdown of what we're up against.

Here are the links to our current project boards:
Trello - https://trello.com/b/TKM36ght/futbol
Google Drive - https://drive.google.com/drive/folders/1fO_bBq-b3HYDC7ttraa4rBsGO4FRDiLS?usp=sharing

No one in our group had a strong preference for what organizational strategy or tool they wanted to use. We had some minor experience with Trello and after all playing around with it decided it would serve our needs. There are undoubtedly many useful tools built in we are not even aware of yet. The Google docs will also continue to serve us as they allow more flexibility in the type of content we can upload/manipulate.

We've all read the project requirements individually, shared notes, and begun to outline our plan of attack. We're making sure everyone understands the project objective on a higher level and breaking it down into smaller chunks in order to delegate those chunks to individual members. We're doing our best to recognize which steps go where and approach this linearly.

Retro Link - https://easyretro.io/publicboard/vehLoQo3XZNNMMNL8P8qBxb7F7f2/13cc085c-d6da-42bf-b2aa-ad6338af007d
19 changes: 19 additions & 0 deletions lib/game.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class Game
attr_reader :game_id, :season, :type, :date_time, :away_team_id, :home_team_id, :away_goals, :home_goals, :venue, :venue_link

def initialize(data)
@game_id = data[:game_id]
@season = data[:season]
@type = data[:type]
@date_time = data[:date_time]
@away_team_id = data[:away_team_id]
@home_team_id = data[:home_team_id]
@away_goals = data[:away_goals].to_i
@home_goals = data[:home_goals].to_i
@venue = data[:venue]
@venue_link = data[:venue_link]

end


end
25 changes: 25 additions & 0 deletions lib/game_team.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
class GameTeam

attr_reader :game_id, :team_id, :HoA, :result, :settled_in, :head_coach, :goals, :shots, :tackles, :pim, :powerPlayOpportunities, :powerPlayGoals, :faceOffWinPercentage, :giveaways, :takeaways



def initialize(data)
@game_id = data[:game_id]
@team_id = data[:team_id]
@HoA = data[:HoA]
@result = data[:result]
@settled_in = data[:settled_in]
@head_coach = data[:head_coach]
@goals = data[:goals].to_i
@shots = data[:shots].to_i
@tackles = data[:tackles].to_i
@pim = data[:pim].to_i
@powerPlayOpportunities = data[:powerPlayOpportunities].to_i
@powerPlayGoals = data[:powerPlayGoals].to_i
@faceOffWinPercentage = data[:faceOffWinPercentage].to_f
@giveaways = data[:giveaways].to_i
@takeaways = data[:takeaways].to_i

end
end
Loading