{"id":4473,"date":"2016-07-04T16:16:17","date_gmt":"2016-07-04T15:16:17","guid":{"rendered":"http:\/\/www.solidapps.co.uk\/blog\/?p=4473"},"modified":"2016-07-04T16:16:17","modified_gmt":"2016-07-04T15:16:17","slug":"fantasy-football-driveworks-style","status":"publish","type":"post","link":"https:\/\/www.solidapps.co.uk\/blog\/2016\/07\/fantasy-football-driveworks-style\/","title":{"rendered":"Fantasy Football \u2013 DriveWorks Style!"},"content":{"rendered":"<p>The <a href=\"http:\/\/www.uefa.com\/uefaeuro\/\">European Championship<\/a>\u00a0is an international football competition that takes place every four years. It began in 1960 and has expanded since then. This year, there are 24 teams taking part. The tournament is being hosted in France, with the host nation also being the favourites to win the trophy.<\/p>\n<div class=\"vc_row wpb_row vc_row-fluid\">\n<div class=\"wpb_column vc_column_container vc_col-sm-8\">\n<div class=\"vc_column-inner \">\n<div class=\"wpb_wrapper\">\n<div class=\"wpb_text_column wpb_content_element \">\n<div class=\"wpb_wrapper\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"vc_single_image-img attachment-full alignright\" src=\"http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-1.jpg\" sizes=\"auto, (max-width: 237px) 100vw, 237px\" srcset=\"http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-1.jpg 237w, http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-1-119x200.jpg 119w, http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-1-48x80.jpg 48w\" alt=\"fantasy football 1\" width=\"237\" height=\"397\" \/>In true DriveWorks style we\u2019ve created a cool project that automates the\u00a0DriveWorks Fantasy Football league for the European Championship.<\/p>\n<p>The project was created by our Technical Team Manager, Phil, and it\u00a0involves selecting players who earn points for a variety of things, for example if they score a goal.<\/p>\n<p>The idea arose when one of our Reseller Application Engineers created an NFL fantasy draft project using DriveWorks. The excitement of having DriveWorks running our Euro Fantasy League meant that many more people here at DriveWorks wanted to take part.<\/p>\n<p>The project didn\u2019t take very long for Phil to create. He emailed everyone asking their thoughts on the Monday and the project was complete by Thursday. Firstly, he compiled a list of all 552 players in the tournament and matched them to their position \u2013 either Goalkeeper, Defender, Midfielder or Attacker.<\/p>\n<p>He then created variables with DriveWorks to make it easier to filter and search for players. Not everyone entering had extensive football knowledge, so this made it possible for them to identify players from the teams that were tournament favourites.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"wpb_column vc_column_container vc_col-sm-4\"><\/div>\n<\/div>\n<div class=\"vc_row wpb_row vc_row-fluid\">\n<div class=\"wpb_column vc_column_container vc_col-sm-12\">\n<div class=\"vc_column-inner \">\n<div class=\"wpb_wrapper\">\n<div class=\"wpb_text_column wpb_content_element \">\n<div class=\"wpb_wrapper\">\n<h2><strong>Applying Rules<\/strong><\/h2>\n<\/div>\n<\/div>\n<div class=\"wpb_text_column wpb_content_element \">\n<div class=\"wpb_wrapper\">\n<p>The next task involved assigning each selected player to the fantasy team. This was relatively straight forward and done by using a Group Table export document to add the name in a \u2018Selected By\u2019 column in the list of players.<\/p>\n<p>Once a player had been selected, they have to be removed from the list of available players. This involved going back and adding checks to the filter variables to remove any players where \u2018Selected By\u2019 was not blank, guaranteed that players could not be selected twice.<\/p>\n<\/div>\n<\/div>\n<div class=\"wpb_single_image wpb_content_element vc_align_center\">\n<figure class=\"wpb_wrapper vc_figure\">\n<div class=\"vc_single_image-wrapper vc_box_border_grey\"><img loading=\"lazy\" decoding=\"async\" class=\"vc_single_image-img attachment-full\" src=\"http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-2.jpg\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" srcset=\"http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-2.jpg 641w, http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-2-200x75.jpg 200w, http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-2-80x30.jpg 80w\" alt=\"fantasy football 2\" width=\"641\" height=\"239\" \/><\/div>\n<\/figure>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"vc_row wpb_row vc_row-fluid\">\n<div class=\"wpb_column vc_column_container vc_col-sm-12\">\n<div class=\"vc_column-inner \">\n<div class=\"wpb_wrapper\">\n<div class=\"wpb_text_column wpb_content_element \">\n<div class=\"wpb_wrapper\">\n<p>Ensuring that people could only pick the correct number of players in each position based on their chosen formation was done by first creating a list of all the selected players and their position and then doing a count of the items in the list and comparing them with the selected formation. If it exceeded the maximum, a warning message would appear.<\/p>\n<p>With all of this complete, it was ready for the start of the tournament on Friday 10<sup><span style=\"font-size: small;\">th<\/span><\/sup> June. Every Friday, we treat ourselves to Fish and Chips \u2013 a DriveWorks tradition!<\/p>\n<p>We completed the draft whilst eating them and the draft order was selected randomly, each pick had to be made within 30 seconds. This made it a high pressure environment with many entrants having done lots of prior research. A few members of the team\u00a0arrived with huge lists of players that they would choose from in addition to elaborate plans of the order they would pick each position.<\/p>\n<p>A nice feature that Phil added was the randomise feature. Anyone could hit the random player button and the project would select a player randomly and add them to the squad. This created added fun and suspense to the draft. Once every team had 11 players selected, the teams were locked in. Phil then sent a graphic of every team and updates the leader board after each game.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"vc_row wpb_row vc_row-fluid\">\n<div class=\"wpb_column vc_column_container vc_col-sm-8\">\n<div class=\"vc_column-inner \">\n<div class=\"wpb_wrapper\">\n<div class=\"wpb_text_column wpb_content_element \">\n<div class=\"wpb_wrapper\">\n<p>As DriveWorks is a rules based system the idea of using it for our league works really well and the draft selection went smoothly. In order to improve the project, having a way of tracking the points automatically would save manually entering them. The ideal scenario would be to link the project to a free web service with a list of points scored by each player. Phil says that the manual process doesn\u2019t take long but he would rather spend that time having a beer and watching\u00a0the games!<\/p>\n<p>The project has been thoroughly enjoyed by all of the DriveWorks Team so far but it\u2019s not over yet! Watch this space!<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"wpb_column vc_column_container vc_col-sm-4\">\n<div class=\"vc_column-inner \">\n<div class=\"wpb_wrapper\">\n<div class=\"wpb_single_image wpb_content_element vc_align_center\">\n<figure class=\"wpb_wrapper vc_figure\">\n<div class=\"vc_single_image-wrapper vc_box_border_grey\"><img loading=\"lazy\" decoding=\"async\" class=\"vc_single_image-img attachment-full\" src=\"http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-3.jpg\" sizes=\"auto, (max-width: 285px) 100vw, 285px\" srcset=\"http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-3.jpg 285w, http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-3-200x186.jpg 200w, http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-3-80x74.jpg 80w\" alt=\"fantasy football 3\" width=\"285\" height=\"265\" \/><\/div>\n<\/figure>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"vc_row wpb_row vc_row-fluid\">\n<div class=\"wpb_column vc_column_container vc_col-sm-6\">\n<div class=\"vc_column-inner \">\n<div class=\"wpb_wrapper\">\n<div class=\"wpb_single_image wpb_content_element vc_align_center\">\n<figure class=\"wpb_wrapper vc_figure\">\n<div class=\"vc_single_image-wrapper vc_box_border_grey\"><img loading=\"lazy\" decoding=\"async\" class=\"vc_single_image-img attachment-full\" src=\"http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-draft-small.jpg\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" srcset=\"http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-draft-small.jpg 400w, http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-draft-small-200x150.jpg 200w, http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-draft-small-80x60.jpg 80w\" alt=\"fantasy football draft small\" width=\"400\" height=\"300\" \/><\/div>\n<\/figure>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"wpb_column vc_column_container vc_col-sm-6\">\n<div class=\"vc_column-inner \">\n<div class=\"wpb_wrapper\">\n<div class=\"wpb_single_image wpb_content_element vc_align_center\">\n<figure class=\"wpb_wrapper vc_figure\">\n<div class=\"vc_single_image-wrapper vc_box_border_grey\"><img loading=\"lazy\" decoding=\"async\" class=\"vc_single_image-img attachment-full\" src=\"http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-draft-2.jpg\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" srcset=\"http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-draft-2.jpg 400w, http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-draft-2-200x150.jpg 200w, http:\/\/www.driveworks.co.uk\/wp-content\/uploads\/2016\/06\/fantasy-football-draft-2-80x60.jpg 80w\" alt=\"fantasy football draft 2\" width=\"400\" height=\"300\" \/><\/div>\n<\/figure>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The European Championship\u00a0is an international football competition that takes place every four years. It began in 1960 and has expanded since then. This year, there are 24 teams taking part.&hellip; <\/p>\n","protected":false},"author":1,"featured_media":2303,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[116],"class_list":["post-4473","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-driveworks","tag-driveworks"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.solidapps.co.uk\/blog\/wp-json\/wp\/v2\/posts\/4473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.solidapps.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.solidapps.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.solidapps.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.solidapps.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=4473"}],"version-history":[{"count":3,"href":"https:\/\/www.solidapps.co.uk\/blog\/wp-json\/wp\/v2\/posts\/4473\/revisions"}],"predecessor-version":[{"id":4476,"href":"https:\/\/www.solidapps.co.uk\/blog\/wp-json\/wp\/v2\/posts\/4473\/revisions\/4476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.solidapps.co.uk\/blog\/wp-json\/wp\/v2\/media\/2303"}],"wp:attachment":[{"href":"https:\/\/www.solidapps.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=4473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.solidapps.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=4473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.solidapps.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=4473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}