{"id":59,"date":"2025-11-10T15:03:10","date_gmt":"2025-11-10T15:03:10","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/l_smith\/?p=59"},"modified":"2025-11-10T15:03:10","modified_gmt":"2025-11-10T15:03:10","slug":"nfl-project-week-9-day-1","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/l_smith\/2025\/11\/10\/nfl-project-week-9-day-1\/","title":{"rendered":"NFL PROJECT WEEK 9  DAY 1"},"content":{"rendered":"\n<p>happy monday today the normal teacher wasnt here but he said work on your free friday project and make a blog post about it so here it goes <\/p>\n\n\n\n<p>today monday 11\/10 of 2025 i worked on the flags for my nfl project since i want this to be as real as it can be and adding flags is that next step <\/p>\n\n\n\n<p>how flags work:<\/p>\n\n\n\n<p>if the code is simulateing the bills and jets for exmaple and jets have the ball the program will say holding offense\/defense player #  x yards if the flag was accepted of declined  <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import random \nflags = &#91;\"holdinhgs \", \"pass interference\", \"offside\", \"false start\", \"clipping\", \"unsportsmanlike conduct\", \"delay of game\", \"illegal motion\", \"personal foul\", \"roughing the passer\",\" facemask\", \"illegal block in the  back \", \"horse collar tackle\", \"targeting\", \"chop block\"]\ndef get_random_flag():\n    return random.choice(flags)<\/code><\/pre>\n\n\n\n<p>it isnt fully done but by the end of friday it will be <\/p>\n\n\n\n<p>the reason im taking my time on this is because i want to enjoy the steps this has a lot of reseach going into it because i want it to simulate the nfl perfectly <\/p>\n\n\n\n<p> <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"80\" src=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/11\/image-1-1024x80.png\" alt=\"\" class=\"wp-image-60\" srcset=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/11\/image-1-1024x80.png 1024w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/11\/image-1-300x23.png 300w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/11\/image-1-768x60.png 768w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/11\/image-1.png 1335w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>happy monday today the normal teacher wasnt here but he said work on your free friday project and make a blog post about it so here it goes today monday 11\/10 of 2025 i worked on the flags for my nfl project since i want this to be as real as it can be and [&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-59","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/59","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=59"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":61,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/59\/revisions\/61"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}