{"id":24,"date":"2017-12-05T17:56:57","date_gmt":"2017-12-05T17:56:57","guid":{"rendered":"https:\/\/acc.scriv.me.uk\/moredepth\/?p=24"},"modified":"2017-12-05T17:56:57","modified_gmt":"2017-12-05T17:56:57","slug":"honours-board","status":"publish","type":"post","link":"https:\/\/acc.scriv.me.uk\/moredepth\/2017\/12\/05\/honours-board\/","title":{"rendered":"Honours Board"},"content":{"rendered":"<p>Something that has been missing through the ages (annoyingly so) is a go-to list of every Advent Calendar Challenge champion, so my task for the past couple of days has been to make one. I am pleased to announce it has now been launched and can be found <a href=\"\/honoursboard\">here<\/a>.<\/p>\n<p>When I set out to make it I envisaged something akin to an honours board in a sports club &#8211; a list of years and winners. I was going to expand that to have winning team and best &#8220;rookie&#8221; alongside it too, so it would have been a simple row-with-three-names structure &#8211; but along the way things changed a bit. First off I decided it would be nice to make use of the profile pictures I hold for some players (click a player&#8217;s name to see them for anyone. If you want yours added, removed or updated then let me know!) so I decided to work those in. This immediately caused a more 2D approach to be taken, with the huge year number you see on the final version and names listed vertically within each year.<\/p>\n<p>Secondly there has been one year where there was a three-way tie for the win as all three leading points scorers had exactly the same scoring days throughout so there was no way to separate them. I needed a way to be able to list multiple winners in this case so the ability to stretch vertically was necessary for this too. In the end I settled on the top three for each year, as top threes are often acknowledged in competition anyway.<\/p>\n<p><em>(As an aside, I&#8217;ve always been annoyed that unbreakable ties are possible but at work today I came up with a way to finally break them that isn&#8217;t arbitrary. I&#8217;ll be making use of <a href=\"\/acc_rules_2017.pdf\">Article 2b<\/a> of the official regulations and going back to do just that in due course&#8230;)<\/em><\/p>\n<p>The other hurdle I encountered was that whilst players have a unique ID number that the website uses to track and reference them throughout, the teams championship system was a bit more rough and ready so I had to build and implement that almost in full for the &#8220;Honours Board&#8221; script to work properly. This was complicated only slightly more by the fact that the teams championship basis has changed a few times since its inception and I don&#8217;t hold data in the back-end of the website for who was in what team for the older iterations of it. It&#8217;s easily reconstructed from the static html tables on the history pages, however, should I desire to do that for the future\u00a0<em>(I could, however, retrospectively work out who&#8217;d win the starsign championship all the way back to the start, if I wanted&#8230;)<\/em>. The honours board script in any event doesn&#8217;t add up the scores for every year manually every time, there&#8217;s a separate database table with final points and finishing positions stored in it so a simple lookup rather than lots of maths is all that is required.<\/p>\n<p>So in the end after a few niggly bits of coding we end up with rather a simple page &#8211; huge year number, and a picture of the individual winner (or, for now, one of them at random where there was a tie) and the year&#8217;s top three, best rookie and winning team. Where the individual, team or debutante score record was broken that year, that is shown too (WR, TR or RB) along with a small label if that person or team was winning for more than the first time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Something that has been missing through the ages (annoyingly so) is a go-to list of every Advent Calendar Challenge champion, so my task for the past couple of days has been to make one. I am pleased to announce it has now been launched and can be found here. When I set out to make&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-website","content","has-not-featured-image"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/acc.scriv.me.uk\/moredepth\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/acc.scriv.me.uk\/moredepth\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/acc.scriv.me.uk\/moredepth\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/acc.scriv.me.uk\/moredepth\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/acc.scriv.me.uk\/moredepth\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":1,"href":"https:\/\/acc.scriv.me.uk\/moredepth\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":25,"href":"https:\/\/acc.scriv.me.uk\/moredepth\/wp-json\/wp\/v2\/posts\/24\/revisions\/25"}],"wp:attachment":[{"href":"https:\/\/acc.scriv.me.uk\/moredepth\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/acc.scriv.me.uk\/moredepth\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/acc.scriv.me.uk\/moredepth\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}