Daniel Schädler
a74236982d
Generate a valid tournament like at bpwstr
2025-03-09 19:34:49 +01:00
Daniel Schädler
322d1e2ed4
Add dummy tournament with group stage
2025-03-08 17:39:36 +01:00
Daniel Schädler
15e2bd830f
Randomize points in group_scores factory
2019-06-18 22:22:10 +02:00
Daniel Schädler
748ac18b35
Implement finished_group_match factory
2019-06-18 22:22:10 +02:00
Daniel Schädler
68efd3caae
Add factory for a finished_playoff_match
2019-06-18 19:22:05 +02:00
Daniel Schädler
f35ba5c745
Create factory for :single_team_match
2019-06-17 15:02:30 +02:00
Thor77
45ede9029e
Add :bet factory
2019-06-17 13:48:49 +02:00
Daniel Schädler
2e336262aa
Add state to stage
...
This state is required to stop the group stage and trigger playoff
generation, it is (for now) irrelevant for anything other than that.
2019-06-13 13:21:24 +02:00
Daniel Schädler
4f64afd5fe
Assign values to playoff transition relevant variables in factory
2019-06-13 13:21:24 +02:00
Daniel Schädler
3e04584e9f
Test changing group_stage transition relevant parameters
2019-06-13 13:21:24 +02:00
Daniel Schädler
36bdfbae28
Add default for playoff_teams_amount to tournament factory
2019-06-13 13:21:24 +02:00
Daniel Schädler
2b7d0edf74
Correct state of empty_prepared_playoff_match factory
2019-06-05 17:05:58 +02:00
Daniel Schädler
f97c8e501c
Remove unnecessary :group_stage_only tournament
2019-06-05 09:49:21 +02:00
Daniel Schädler
5925f23720
Make Match Factory configurable for group_stage and group factory
2019-06-05 09:49:21 +02:00
Daniel Schädler
c674e5fcab
Add group_scores to groups factory, one for every team
2019-06-05 09:49:21 +02:00
Daniel Schädler
990361a25b
Fix comparison that got lost in refactoring
2019-05-27 13:25:14 +02:00
Daniel Schädler
a710addde7
Create :stage_tournaments with realistic match positions
2019-05-26 22:03:22 +02:00
Daniel Schädler
280b0c1dec
Change status of Match to only represent being finished
...
The winner will be a attribute of the Match instead of something
that is written in its status.
2019-05-26 20:14:13 +02:00
Daniel Schädler
51056d340c
Save the whole stage instead of the single matches
2019-05-22 09:25:07 +02:00
Daniel Schädler
b36e3c4251
Delegate owner of team to tournament again
2019-05-22 09:25:07 +02:00
Daniel Schädler
27709f0136
This change will basically solve climate change as it saves all
...
the computing power in the whole world.
2019-05-22 09:25:07 +02:00
Thor77
b5377db1f3
Reformat indention
2019-05-22 09:25:07 +02:00
Daniel Schädler
d548eee245
Change .map to .each
2019-05-22 09:25:07 +02:00
Daniel Schädler
dcb19461be
Add group_stage_only_tournament factory
2019-05-22 09:25:07 +02:00
Daniel Schädler
03d7369a1c
Remove link between team.owner and tournament
2019-05-22 09:25:07 +02:00
Daniel Schädler
f73820f2f2
Reduce standart amount of teams within a tournament to 8
2019-05-22 09:25:07 +02:00
Daniel Schädler
3f4c6336c2
Add dummy_stage_tournament
2019-05-22 09:25:07 +02:00
Daniel Schädler
c55b45bdc1
Add position to all matches
2019-05-22 09:25:07 +02:00
Daniel Schädler
80b14900d0
Makes match_type configurable instead of only setting its state
2019-05-22 09:25:07 +02:00
Daniel Schädler
b9afa956ce
Add empty_prepared_playoff_match
2019-05-22 09:25:07 +02:00
Thor77
42d9b0957f
Save match position
2019-05-22 09:25:07 +02:00
Daniel Schädler
8a70d5f333
For stage tournament, first stage has running matches
2019-05-22 09:25:07 +02:00
Daniel Schädler
cb82ca44d8
Put running playoff matches in a playoff stage (only on first level)
2019-05-22 09:25:07 +02:00
Daniel Schädler
7afb5ae552
Create realistic number of Matches
...
When match_count is -1 the number of matches generated is automatically
2 ^ stage.level -> This is the amount of stages present in a "real"
tournament stage. When supplying a positive number, it generates that
many matches like before.
This also now adds the position to the match list after creating them
2019-05-22 09:25:07 +02:00
Daniel Schädler
55f1656328
Manually create the list of stages to assign stage levels correctly
2019-05-22 09:25:07 +02:00
Daniel Schädler
6d66328dc8
Move group_stage tournament into stage tournament
2019-05-22 09:25:07 +02:00
Daniel Schädler
8026e66d9b
Add :undecided_group_match and :decided_playoff_match
2019-05-22 09:25:07 +02:00
Daniel Schädler
babc233412
Adds :playoff_stage as factory
2019-05-04 20:34:57 +02:00
Daniel Schädler
0f7279de97
Add running_group_match factory
2019-05-04 20:34:57 +02:00
Daniel Schädler
3fc344249d
Add multiple factories
2019-05-04 20:34:57 +02:00
Daniel Schädler
f47ffebcd4
Makes Groups have different incrementing numbers
2019-05-04 20:34:57 +02:00
Thor77
847f4a1c69
Add password to User factory
2019-04-23 10:48:25 +02:00
Thor77
d7a8504b45
Replace deprecated Faker::Dog
2019-04-03 09:45:56 +02:00
Daniel Schädler
68f9b3b2b3
Change Score to MatchScore & MatchScore score attribute to points
...
This is done to improve the naming and therefore make things easier to understand.
2018-11-30 14:15:48 +01:00
Daniel Schädler
8e7869b879
Improve Factories
2018-11-29 11:01:52 +01:00
Daniel Schädler
34159f7e01
Add a running playoff Match to Match Factory
2018-11-29 11:01:17 +01:00
Daniel Schädler
fbb87f5f7c
Add a tournament with stages to factory
2018-11-29 10:48:26 +01:00
Thor77
9a41b19e97
Add team factory without parent tournament
2018-11-25 22:55:49 +01:00
Thor77
673e12c052
Validate Stage xor Group present in match
2018-11-20 16:03:58 +01:00
Thor77
1cd4835651
Add valid factories for all models
2018-11-19 14:50:41 +01:00