{"id":62,"date":"2025-11-13T15:15:00","date_gmt":"2025-11-13T15:15:00","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/l_smith\/?p=62"},"modified":"2025-11-13T15:15:00","modified_gmt":"2025-11-13T15:15:00","slug":"week-9-day-2","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/l_smith\/2025\/11\/13\/week-9-day-2\/","title":{"rendered":"week 9 day 2"},"content":{"rendered":"\n<p>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 <\/p>\n\n\n\n<p>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 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class yards:\n    #penalty yards for each flag beteen 5 and 15\n    #for simplicity, we assign fixed yardages here\n    \n       penalty_yards = {\n        \"holding\": 10,\n        \"pass interference\": 15,\n        \"offside\": 5,\n        \"false start\": 5,\n        \"clipping\": 10,\n        \"unsportsmanlike conduct\": 15,\n        \"delay of game\": 5,\n        \"illegal motion\": 5,\n        \"personal foul\": 15,\n        \"roughing the passer\": 15,\n        \"facemask\": 15,\n        \"illegal block in the back\": 10,\n        \"horse collar tackle\": 15,\n        \"targeting\": 15,\n        \"chop block\": 10\n    }<\/code><\/pre>\n\n\n\n<p>this fixes that by telling the program ok this is each flag yards if they chose  to in force it <\/p>\n\n\n\n<p>for exmaple <\/p>\n\n\n\n<p>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 <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"681\" src=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/11\/image-2.png\" alt=\"\" class=\"wp-image-63\" srcset=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/11\/image-2.png 655w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/11\/image-2-289x300.png 289w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-62","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/62","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/comments?post=62"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/62\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/media?parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/categories?post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/tags?post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}