Jon Solow
Add note regarding fractional scores calculated
df0753c
import streamlit as st
from config import DEFAULT_ICON
from shared_page import common_page_config
from stats import STAT_TYPE_KEY_MAP
def get_page():
page_title = "Score Settings"
st.set_page_config(page_title=page_title, page_icon=DEFAULT_ICON, layout="wide")
common_page_config()
st.title(page_title)
st.header("General Rules")
st.markdown(
"""
- The playoffs consist of 4 weeks - Wildcard, Divisional, Conference, and Super Bowl.
- You will select fantasy players from NFL teams in the playoffs and receive points for their on field statistics.
- Each week you keep the same player in your lineup, the multiplier on their points increases from 1X, 2X, 3X, 4X
- Pick the players on the teams that you think are most likely to be in the Super Bowl
- The strategy that is most likely to win the total pool is if you can pick players from one team in the NFC and one team in the AFC who are in the Super Bowl (or all players from one team).
- Players on teams who have a bye in the Wildcard Round can be used in that round. They will earn 0 points in the first round, but will start with 2X points in the second week
- If you have a player on teams that lose, you can replace them with players who are still playing, but will start with 1X. Consider differentiating from the players you know other contestants picked.
"""
)
st.header("Pool Winners")
st.markdown(
"""
The prizes will be divided among the top scorers in each category as follows:
- Wildcard Week: 10%
- Divisional Week: 20%
- Conference Week: 20%
- Super Bowl Week: 10%
- Total Score: 40%
"""
)
st.header("FAQ")
st.markdown(
"""
- Q) Can I select players who are on a bye in week 1?
- A) Yes - If you select players on a bye in week 1, you will receive 0 points in week 1, but will be guaranteed to have 2x multipliers on those players in week 2. This strategy would tradeoff any opportunity to win in week 1 for hopefully a better chance in subsequent weeks.
"""
)
st.header("Stat Values")
st.write("Note: Fractional scores are calculated and used for ranking, while the website shows the rounded value.")
for stat_type in ["Offense", "Kicking", "Defense / Special Teams"]:
st.header(stat_type)
for stat in STAT_TYPE_KEY_MAP[stat_type].values():
st.write(f"{stat.key}: {stat.score}")
if __name__ == "__main__":
get_page()