week 9 day 2


i get 3 days becuse my teacher couldnt get the thing we were meant to do to work so he let us have a free friday day on a thursday

anyway back to the reason your here today i worked on flags so when i used to run it it would have the wrong yardage so

class yards:
    #penalty yards for each flag beteen 5 and 15
    #for simplicity, we assign fixed yardages here
    
       penalty_yards = {
        "holding": 10,
        "pass interference": 15,
        "offside": 5,
        "false start": 5,
        "clipping": 10,
        "unsportsmanlike conduct": 15,
        "delay of game": 5,
        "illegal motion": 5,
        "personal foul": 15,
        "roughing the passer": 15,
        "facemask": 15,
        "illegal block in the back": 10,
        "horse collar tackle": 15,
        "targeting": 15,
        "chop block": 10
    }

this fixes that by telling the program ok this is each flag yards if they chose to in force it

for exmaple

for a game bewteen the bills and ravens lets say its bills ball and #0 for the ravens Roquan Smith jumps early before josh allen hikes the ball it will print false start defence #0 5 yard pentiay or in the case where a team delcine it lets say it 3rd down on the 1 and ravens ball the bills do pass interference and the ravens sorces it will say pass interference #3 defence that pentay is declained touchdown


Leave a Reply

Your email address will not be published. Required fields are marked *