My Football Program
19 replies
http://img512.imageshack.us/img512/3933/200904171820391280x1024.png
This is a screenshot of what I have so far. Looking to expand upon it in a few ways. I want to be able to click each position and have it respond by having a list of all players pop up. When you click on the player you should be able to compare him to not only his previous years performance but other players at that position as well. This should be able to be done with everything from pass attempts to height and weight and everything in between.
At the moment I'm learning as I go along and programming in Python.
edit: the program is the position list on the right.
"A man's suffering is similar to the behavior of gas. If a certain quantity of gas is pumped into an empty chamber, it will fill the chamber completely and evenly, no matter how big the chamber. Thus, suffering completely fills the human soul and conscious mind, no matter whether the suffering great or little. Therefore, the "size" of human suffering is absolutely relative." - Viktor Frankl
python is for wussies!!!
thanks to VO for the sick ass sigs. 

Charlie: If you're not as educated or as informed what you do is you start your own party and you yell the loudest.
"unluckyluciano wrote:
python is for wussies!!!
I'm just learning, blow me.
"A man's suffering is similar to the behavior of gas. If a certain quantity of gas is pumped into an empty chamber, it will fill the chamber completely and evenly, no matter how big the chamber. Thus, suffering completely fills the human soul and conscious mind, no matter whether the suffering great or little. Therefore, the "size" of human suffering is absolutely relative." - Viktor Frankl
"anlgp wrote:
I'm just learning, blow me.
ive actually thought about learning python as its used alot in the video game industry it seems. where did you download the interpreter or compiler or whatever?
thanks to VO for the sick ass sigs. 

Charlie: If you're not as educated or as informed what you do is you start your own party and you yell the loudest.
"unluckyluciano wrote:
ive actually thought about learning python as its used alot in the video game industry it seems. where did you download the interpreter or compiler or whatever?
it's very simple to understand.
"A man's suffering is similar to the behavior of gas. If a certain quantity of gas is pumped into an empty chamber, it will fill the chamber completely and evenly, no matter how big the chamber. Thus, suffering completely fills the human soul and conscious mind, no matter whether the suffering great or little. Therefore, the "size" of human suffering is absolutely relative." - Viktor Frankl
"BuckeyeKing wrote:
Is this going to be like GLB?
no, this is simply for stat junkies and comparison nerds. it's NFL data i'll be putting into it.
"A man's suffering is similar to the behavior of gas. If a certain quantity of gas is pumped into an empty chamber, it will fill the chamber completely and evenly, no matter how big the chamber. Thus, suffering completely fills the human soul and conscious mind, no matter whether the suffering great or little. Therefore, the "size" of human suffering is absolutely relative." - Viktor Frankl
I found out that the NFL uses something called JSON http://www.json.org/ to keep track of the games while they're going on, the scoreboard at the top of the nfl.com website, and the week's 5 best in rushing, etc.
I also found out that this is possible to implement in python.
My program has actually reduced since before because I like to fry my operating system, but I think the acquisition of this knowledge will be incredibly beneficial to me in the near future.
"A man's suffering is similar to the behavior of gas. If a certain quantity of gas is pumped into an empty chamber, it will fill the chamber completely and evenly, no matter how big the chamber. Thus, suffering completely fills the human soul and conscious mind, no matter whether the suffering great or little. Therefore, the "size" of human suffering is absolutely relative." - Viktor Frankl
Does anyone know a good program to change .PDF files to plain .TXT?
I'd appreciate it.
"A man's suffering is similar to the behavior of gas. If a certain quantity of gas is pumped into an empty chamber, it will fill the chamber completely and evenly, no matter how big the chamber. Thus, suffering completely fills the human soul and conscious mind, no matter whether the suffering great or little. Therefore, the "size" of human suffering is absolutely relative." - Viktor Frankl
I'm reading this book about programming in general. It says to make an outline of what the program will do before you even get to the coding, so today I did it.
PROGRAM IDEA
Take a list of NFL positions (QB, HB, FB, TE, WR, LT, LG, C, RG, RT, RDE, LDE, DT, LOLB, MLB, ROLB, CB, FS, SS).
Take a list of NFL teams. Seperate by conference first (AFC/NFC) and then division (ex. AFCN).
Determine averages of statistical data compiled by gamebook .PDF files. parse the files for information. If statistics are below average at that position determine position should be drafted for. Above average stats should be shown in BOLD GREEN. Average should be shown in BOLD WHITE. Below average should be shown in BOLD RED.
Acquire age of players at position. If player is 30 years or older determine that position may need to be drafted for. If "30 or older" show in BOLD RED.
Aquire "team stats". Determine best (BOLD GREEN) and worst (BOLD RED) aspect of team. Draft for worst aspect of team including position (based on previous "age" factor and "individual stat" factor.
Print these in a .PDF file. Should be able to print team needs, others teams in divisions needs, other teams in conference needs. Example.
END USER TEAM = Steelers
BEST POSITION = QB
WORST POSITION = DE
"X" (where X is amount) of players 30 years or older = 5 (DE, LB, CB, WR, TE)
team needs are "DE" based on "worst position" and "LB, CB, WR, TE" based on age.
other teams in your division need "X, Y, Z". Consider moving up in draft. Teams in your conference need "X, Y, Z". Consider trading a position for a pick with them, or moving ahead of them.Future goal:
Impliment college player statistics and fit them to individual teams based on "worst aspect / position". so it would look like
END USER TEAM = Steelers
BEST POSITION = QB
WORST POSITION = DE
"X" (where X is amount) of players 30 years or older = 5 (DE, LB, CB, WR, TE)
team needs are "DE" based on "worst position" and "LB, CB, WR, TE" based on "age".
other teams in your division need "X, Y, Z". Consider moving up in draft. Teams in your conference need "X, Y, Z". Consider trading a position for a pick with them, or moving ahead of them.
YOU SHOULD DRAFT = "DE George Selvie, South Florida". Based upon "worst position" and "age".The difference being the initial program would only print out positions based upon information and the college implimentation would give specific players.
What this is basically going to do is create a draft board for teams based upon statistical data. The data for other teams will be implimented as well that way you can get an advantage over your opponents.
"A man's suffering is similar to the behavior of gas. If a certain quantity of gas is pumped into an empty chamber, it will fill the chamber completely and evenly, no matter how big the chamber. Thus, suffering completely fills the human soul and conscious mind, no matter whether the suffering great or little. Therefore, the "size" of human suffering is absolutely relative." - Viktor Frankl
Pretty cool stuff. be intersted in how you come along. Please update your progress. Pretty good idea BTW


2019 DRAFT WISH LIST
1) DT Dexter Lawrence - Clemson
2) DE Jaylon Ferguson - Lousiana Tech
3) OG Chris Lindstrom - Boston College
4) CB Amani Oruwariye - Penn State
5) DE Shareef Miller - Penn State
7) C Sean Krepcz - Nevada
7) RB Wes Hills - Slippery Rock
Reporter: "Why did you fire Coach Gase?"
Ross: "Because he wants to win now"
"adamprez2003 wrote:
Pretty cool stuff. be intersted in how you come along. Please update your progress. Pretty good idea BTW
will do. this page will serve as a journal of sorts. i'm just learning how to program so it could be a bit.
i'm doing this for two reasons.
one it will be able to serve me as an idea of what teams will be picking where (I got this idea back when i did the statistical report of the 2008 miami dolphins season a while back and suggested that based on the statistical info and age of players who we'd be drafting and it was pretty accurate).
two the GM game we play in the offseason.
i don't know if this will be written by then, but if it's not hopefully by the year after.
It's going to be graphical, too, so it will be easier for others to manage.
"A man's suffering is similar to the behavior of gas. If a certain quantity of gas is pumped into an empty chamber, it will fill the chamber completely and evenly, no matter how big the chamber. Thus, suffering completely fills the human soul and conscious mind, no matter whether the suffering great or little. Therefore, the "size" of human suffering is absolutely relative." - Viktor Frankl
"anlgp wrote:
I'm reading this book about programming in general. It says to make an outline of what the program will do before you even get to the coding, so today I did it.
You will need a bunch of different data structures. One for each conference. Within each of those, one for each division. Within that, one for each team. Within that, one for each player. Each player struct should have a variable to store each type of data. This will keep your data organized, making it easy to make the comparisons you're talking about.
The most important part of this program is the organization of the data, and the proper input of data to the right places. If you can get the program to input all the data to the right spots from the PDF, then you can relatively easily code the comparisons and create your output with the conditional formatting your talked about.
You first major goal should be to create a program that will read in the data from the PDF into the data structures you create. Then print each team's stats, and individual player stats. Don't worry about getting the end results until you get the core structure in place.
If you want to learn more about data structures (struct in C), click here. You can google it for more tutorials and examples.
Good luck.
"GISH wrote:
You will need a bunch of different data structures. One for each conference. Within each of those, one for each division. Within that, one for each team. Within that, one for each player. This will keep your data organized, making it easy to make the comparisons you're talking about.
The most important part of this program is the organization of the data, and the proper input of data to the right places. If you can get the program to input all the data to the right spots from the PDF, then you can relatively easily code the comparisons and create your output with the conditional formatting your talked about.
You first major goal should be to create a program that will read in the data from the PDF into the data structures you create. Then print each team's stats, and individual player stats. Don't worry about getting the end results until you get the core structure in place.
Good luck.
Thanks I appreciate it a bunch.
I've been looking into how to convert .PDF into something I can parse with Python, but I have had no luck so far.
I guess I should create the data structures first, though.
I just looked up implementing graphs in python and it looks like what I'll need.
http://python.org/doc/essays/graphs.html
so it would be something like "DIV, CONF, TEAM, PLAY" - do you mean player or position, btw?
"A man's suffering is similar to the behavior of gas. If a certain quantity of gas is pumped into an empty chamber, it will fill the chamber completely and evenly, no matter how big the chamber. Thus, suffering completely fills the human soul and conscious mind, no matter whether the suffering great or little. Therefore, the "size" of human suffering is absolutely relative." - Viktor Frankl
I'm very interested in seeing how this works out. I'd be curious as to how accurate it is and how useful it would be come Draft day.
Great idea Steve.
"alen1 wrote:
I'm very interested in seeing how this works out. I'd be curious as to how accurate it is and how useful it would be come Draft day.
Great idea Steve.
Thanks.
As I posted a few replies up I got the idea from when I did the statistical guide to the miami dolphins 2008 season. I predicted which positions we might draft and based upon either the numbers or the ages of the players at those positions it was pretty accurate.
How well that holds up over time is the question.
"A man's suffering is similar to the behavior of gas. If a certain quantity of gas is pumped into an empty chamber, it will fill the chamber completely and evenly, no matter how big the chamber. Thus, suffering completely fills the human soul and conscious mind, no matter whether the suffering great or little. Therefore, the "size" of human suffering is absolutely relative." - Viktor Frankl
"anlgp wrote:
Thanks I appreciate it a bunch.
I've been looking into how to convert .PDF into something I can parse with Python, but I have had no luck so far.
I guess I should create the data structures first, though.
I just looked up implementing graphs in python and it looks like what I'll need.
http://python.org/doc/essays/graphs.html
so it would be something like "DIV, CONF, TEAM, PLAY" - do you mean player or position, btw?
probably have a structure for each player that stores their position, name, age, and stats.
Hey, best of luck to ya anigp!
Headcoach material wouldn’t want to work somewhere they’re not trusted with actual football decisions.
got a PHP book for christmas.
i've had a localhost (web page) set up on my linux machine for quite some time. i've started putting in PHP scripts into it based off the book. i've got to figure out a good CMS that is PHP ready (i've looked into both Joomla! and Wordpress and both have to have special plugins to enable PHP scripting). I could use a simple white page, but I want the design to make it more visually appealing.
I've tweaked what I want the program to be able to accomplish a bit.. just basically add to the previous bit that i want to be able to separate the teams into conference/division and be able to print out the stats via either.
ie.
Rushing by yards per game
bengals (1st in DIV, 1st in AFC, 1st in NFL)
at any rate .. celt (i think you're the webmaster?) do you know of any PHP ready CMS's?
http://franticpeanutbutter.blogspot.com/2009/12/nfl-program-concept-pt1.html
"A man's suffering is similar to the behavior of gas. If a certain quantity of gas is pumped into an empty chamber, it will fill the chamber completely and evenly, no matter how big the chamber. Thus, suffering completely fills the human soul and conscious mind, no matter whether the suffering great or little. Therefore, the "size" of human suffering is absolutely relative." - Viktor Frankl
Log in to reply.