Skip to content

fix formation setup code, if line of scrimmage is not the first line #143

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

derNarr
Copy link
Contributor

@derNarr derNarr commented May 26, 2021

when the line of scrimmage was not on the first line of the field, the code parsing the formation files showed strange behaviours. This change fixes these, by looping over all positions and checking, if a position is on the line of scrimmage and not assuming that the LoS is the first line. The old code assumed that the LoS is the first line.

@njustesen
Copy link
Owner

Please add a test for this. You could also consider making one big BB Sevens PR.

@derNarr
Copy link
Contributor Author

derNarr commented May 30, 2021

I will add a test into tests/kickoff/test_setup.py .

I will create a pull request for threes and sevens, when I feel they are only some well defined tasks left.

If you don't mind, I would continue to cherry pick the general improvements of the code base and create separate pull requests on the way. This makes the final pull request of sevens and / or threes less painful.

The main showstopper for merging threes and sevens at the moment is, that I don't know yet how to switch between the different game modes. At the moment I change the server.py and the web.json file to switch between game modes in the front end.

If you would prefer one big pull request in the end, I can do that as well. You are the maintainer and author anyways :-)

@njustesen
Copy link
Owner

Small PRs are fine! It would be cool to switch between game modes through the UI.

Any progress on this?

@njustesen njustesen added the Stale label Sep 3, 2021
@derNarr
Copy link
Contributor Author

derNarr commented Sep 3, 2021

I have not worked on it for a while. The sevens pitch works in principle but need some polishing. I have no real clue on how to change the UI substantially, like adding a new drop down menu with the game mode and then acknowledge that in the python code. I do feel comfortable with the python code base though.

There are more general code changes in my sevens branch, which I might bring into small PRs, if these are merged. :-)

@njustesen
Copy link
Owner

Cool. I know my way around the UI so I can easily do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants