|
Post by Boston Red Sox on Jul 26, 2023 1:46:23 GMT -5
Meanwhile one of my favorite players of all time gets trolled into ratings worse than he deserved, and you applaud. You're the whole fucking circus, not just a clown.
|
|
Play
General Manager
Chicago Cubs
Posts: 2,730
|
Post by Play on Jul 26, 2023 1:58:26 GMT -5
I informed him of every single top 5 change that occurred, and he said he'd look them over. I can't confirm if he ever actually did that part. All I ever did was what I WAS ASKED TO DO. There's a reason I quit doing drafts. You ungrateful fucks. apology for what? That proves absolutely nothing. You were clearly trying to get Zambrano changed behind the scenes.
|
|
|
Post by Boston Red Sox on Jul 26, 2023 2:02:04 GMT -5
I informed him of every single top 5 change that occurred, and he said he'd look them over. I can't confirm if he ever actually did that part. All I ever did was what I WAS ASKED TO DO. There's a reason I quit doing drafts. You ungrateful fucks. apology for what? That proves absolutely nothing. You were clearly trying to get Zambrano changed behind the scenes. Wrong. I fought more for Jason Bay to get Brilliant Walks. But you're just a piece of shit who does nothing but constantly misrepresent.
|
|
|
Post by Boston Red Sox on Jul 26, 2023 2:04:43 GMT -5
I informed him of every single top 5 change that occurred, and he said he'd look them over. I can't confirm if he ever actually did that part. All I ever did was what I WAS ASKED TO DO. There's a reason I quit doing drafts. You ungrateful fucks. apology for what? That proves absolutely nothing. You were clearly trying to get Zambrano changed behind the scenes. I TRIED SO HARD, THE ONLY THING I SAID ABOUT HIM AFTER DOING WHAT I WAS ASKED.
|
|
|
Post by Boston Red Sox on Jul 26, 2023 2:08:59 GMT -5
It's ok to admit when you're wrong, I do it all the fucking time. You're such a disingenuous piece of shit I think you're incapable though.
|
|
|
Post by Boston Red Sox on Jul 26, 2023 2:20:43 GMT -5
There should be an extra circle in hell made by the time you die for those that maliciously troll to the extent a few of you have.
|
|
Play
General Manager
Chicago Cubs
Posts: 2,730
|
Post by Play on Jul 26, 2023 2:37:59 GMT -5
It's ok to admit when you're wrong, I do it all the fucking time. You're such a disingenuous piece of shit I think you're incapable though. lmaooo @ you casually saying you bumped Zambrano while having the #1 overall pick
|
|
|
Post by Boston Red Sox on Jul 26, 2023 2:48:39 GMT -5
It's ok to admit when you're wrong, I do it all the fucking time. You're such a disingenuous piece of shit I think you're incapable though. lmaooo @ you casually saying you bumped Zambrano while having the #1 overall pick It was based on what was asked of me to do you dumb motherfucker. You literally can't just be honest.
|
|
|
Post by Boston Red Sox on Jul 26, 2023 2:49:34 GMT -5
It's ok to admit when you're wrong, I do it all the fucking time. You're such a disingenuous piece of shit I think you're incapable though. lmaooo @ you casually saying you bumped Zambrano while having the #1 overall pick Was it casual or was I pushing for it? Shifting goalposts, the hallmark of the douchebag troll.
|
|
|
Post by Boston Red Sox on Jul 26, 2023 2:52:24 GMT -5
Let's ignore that i BEGGED for someone else to step up because I had the #1 pick, nobody else wanted to make the draft.
|
|
Reddington
General Manager
Atlanta Braves
Posts: 17,837
|
Post by Reddington on Jul 26, 2023 7:28:42 GMT -5
I’m not griping or complaining, just trying to better understand the process and equations. If this is true, why does the new program have all three guys worse than Brian said they should be? Can we get the process and benchmarks listed somewhere for everyone to see? here it is package try2;
import java.io.BufferedReader;
import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.PrintWriter; import java.util.Scanner; import java.util.Random; import java.util.*; import java.text.*;
public class generalInfo {
public static void main(String[] args) throws FileNotFoundException {
int nr1[] = new int[10000]; int draYear = 2006; String play1f[] = new String[10000]; String play1L[] = new String[10000]; String bDay1[] = new String[10000]; String bDay2[] = new String[10000]; int pP1[] = new int[10000]; String range1[] = new String[10000]; String pct1[] = new String[10000]; String pRole1[] = new String[10000]; String bat1[] = new String[10000]; String throw1[] = new String[10000]; int jer1[] = new int[10000]; int wei1[] = new int[10000]; String hi1[] = new String[10000]; String spee1[] = new String[10000]; String steal1[] = new String[10000]; String pitEn1[] = new String[10000]; String ori1[] = new String[10000]; String cat1[] = new String[10000]; String out1[] = new String[10000];
int y=0; int x=0; String line = ""; String splitBy = ",";
int b=0;
try {
BufferedReader br = new BufferedReader(new FileReader("c:\\test\\c_players_general.csv"));
line = br.readLine(); while ((line = br.readLine()) != null) { String[] pla = line.split(splitBy); //inS=rBS(sb); //System.out.println(pla);
nr1[y]=Integer.parseInt(pla[0]); play1L[y]=(pla[1]); play1f[y]=(pla[2]); bDay1[y]=(pla[3]); pP1[y]=Integer.parseInt((pla[4])); range1[y]=(pla[5]); pct1[y]=(pla[6]); pRole1[y]=(pla[7]); bat1[y]=(pla[8]); throw1[y]=(pla[9]); jer1[y]=Integer.parseInt((pla[10])); wei1[y]=Integer.parseInt((pla[11])); hi1[y]=(pla[12]); spee1[y]=(pla[13]); steal1[y]=(pla[14]); pitEn1[y]=(pla[15]); ori1[y]=(pla[16]); cat1[y]=(pla[17]); out1[y]=(pla[18]);
//System.out.println("hello"); //System.out.println(nr1[y] + " , " +out1[y]); y++;
} br.close(); }
catch (IOException e) { e.printStackTrace(); }
// people String pid[] = new String[10000]; int bY[] = new int[10000]; int bM[] = new int[10000]; int bD[] = new int[10000]; String bC[] = new String[10000]; String bS[] = new String[10000]; String playf[] = new String[10000];
String playL[] = new String[10000]; //String bDay2[] = new String[10000];
String bat[] = new String[10000]; String thro[] = new String[10000]; int wei[] = new int[10000]; int hi[] = new int[10000];
try {
BufferedReader br = new BufferedReader(new FileReader("c:\\test\\people.csv"));
line = br.readLine(); while ((line = br.readLine()) != null) { String[] pla = line.split(splitBy); //inS=rBS(sb); //System.out.println("people"+pla);
pid[x]=(pla[0]); bY[x]=Integer.parseInt(pla[1]); bM[x]=Integer.parseInt(pla[2]); bD[x]=Integer.parseInt(pla[3]); bC[x]=(pla[4]); bS[x]=(pla[5]); playf[x]=(pla[6]); playL[x]=(pla[7]);
wei[x]=Integer.parseInt(pla[8]); hi[x]=Integer.parseInt(pla[9]); bat[x]=(pla[10]); if (bat[x].equals("B")) { bat[x]="S"; } thro[x]=(pla[11]);
//System.out.println(x+ "," + nr1[x]+","+play1L[x]+","+play1f[x]);
x++;
} br.close(); } catch (IOException e) { e.printStackTrace(); }
int z=0;
//bring in the draft list String pri[]= new String[2500]; String last[]= new String[2500]; String fir[]= new String[2500]; String pos[]= new String[2500]; try {
BufferedReader br = new BufferedReader(new FileReader("c:\\test\\draftable.csv"));
line = br.readLine(); while ((line = br.readLine()) != null) { String[] pla = line.split(splitBy); //inS=rBS(sb); //System.out.println("draft"+pla);
pri[z]=(pla[0]); fir[z]=(pla[1]); last[z]=(pla[2]); z++; } br.close(); } catch (IOException e) { e.printStackTrace(); }
String fpri[]= new String[100000]; String fyid[]= new String[100000]; String flast[]= new String[100000]; String ffir[]= new String[100000]; String fpos[]= new String[100000]; int fG[] = new int[100000]; int fGs[] = new int[100000]; int fIO[] = new int[100000]; int fPO[] = new int[100000]; int fA[] = new int[100000]; int fDP[] = new int[100000]; int fPB[] = new int[100000]; int fWP[] = new int[100000]; int fGSA[] = new int[100000]; int fTO[] = new int[100000]; int fE[] = new int[100000]; int fn=0;
try { //System.out.println("fielding");
BufferedReader br = new BufferedReader(new FileReader("c:\\test\\fielding.csv"));
line = br.readLine(); while ((line = br.readLine()) != null) { String[] pla = line.split(splitBy); //inS=rBS(sb); //System.out.println(pla);
fpri[fn]=(pla[0]); fyid[fn]=(pla[1]); //flast[z]=(pla[2]); //ffir[z]=(pla[3]); fpos[fn]=(pla[2]); fG[fn]=Integer.parseInt(pla[3]); fGs[fn]=Integer.parseInt(pla[4]); fIO[fn]=Integer.parseInt(pla[5]); fPO[fn]=Integer.parseInt(pla[6]); fA[fn]=Integer.parseInt(pla[7]); fE[fn]=Integer.parseInt(pla[8]); fDP[fn]=Integer.parseInt(pla[9]); fPB[fn]=Integer.parseInt(pla[10]); //fWP[z]=Integer.parseInt(pla[13]); fGSA[fn]=Integer.parseInt(pla[11]); fTO[fn]=Integer.parseInt(pla[12]); //System.out.println(z + "," + pla); fn++; } br.close(); } catch (IOException e) { e.printStackTrace(); } int fo=0;
String ofpri[]= new String[100000]; String fyidO[]= new String[100000];
String fposO[]= new String[100000]; int foIo[] = new int[100000]; int foPO[] = new int[100000]; int foA[] = new int[100000]; int foE[] = new int[100000]; int foD[] = new int[100000]; try { //System.out.println("fielding");
BufferedReader br = new BufferedReader(new FileReader("c:\\test\\ofPOS.csv"));
line = br.readLine(); while ((line = br.readLine()) != null) { String[] pla = line.split(splitBy); //inS=rBS(sb); //System.out.println(pla);
ofpri[fo]=(pla[0]); fyidO[fo]=(pla[1]); fposO[fo]=(pla[2]); foIo[fo]=Integer.parseInt(pla[3]); foPO[fo]=Integer.parseInt(pla[4]); foA[fo]=Integer.parseInt(pla[5]); foE[fo]=Integer.parseInt(pla[6]); foD[fo]=Integer.parseInt(pla[7]);
fo++; } br.close(); } catch (IOException e) { e.printStackTrace(); }
System.out.println("sort"); int g,h; for (g=0;g<z;g++) { for (h=0;h<fn;h++) { if (pri[g].equals(fpri[h])) { //System.out.println(g); pos[g]=fpos[h]; //System.out.println(pos[g]); } } } String priP[]= new String[2500]; String lastP[]= new String[2500]; String firP[]= new String[2500]; String posP[]= new String[2500]; String priF[]= new String[2500]; String lastF[]= new String[2500]; String firF[]= new String[2500]; String posF[]= new String[2500];
int p=0,f=0; for (g=0;g<z;g++) { if (pos[g].equals("P")) { priP[p]=pri[g]; lastP[p]=last[g]; firP[p]=fir[g]; posP[p]=pos[g]; p++; } else { priF[f]=pri[g]; lastF[f]=last[g]; firF[f]=fir[g]; posF[f]=pos[g];
f++; } }
//System.out.println(f + " " + p);
//read in pitching ratings
String ptal[] = new String[10000]; int pnr[] = new int[10000]; String pplay[] = new String[10000]; int pab[] = new int[10000]; String pavg[] = new String[10000]; int ptwob[] = new int[10000]; int pthreeb[] = new int[10000]; int phr[] = new int[10000]; int pbb[] = new int[10000]; int pso[] = new int[10000]; int pa,pb;
//Scanner inFile; Scanner inFile2;
PrintWriter outFile; String name2;
String inS; int py=0; int px=0; double c=0.0; double d=0.0;
//String line = ""; //String splitBy = ","; // read pitching try {
BufferedReader br = new BufferedReader(new FileReader("c:\\test\\pitching_ratings.csv")); //na3="c:\\test\\batting_ratings.csv"; //inFile2 = new Scanner(new File(na3)); //inFile2.nextLine(); line = br.readLine(); while ((line = br.readLine()) != null) { String[] pla = line.split(splitBy); //inS=rBS(sb); //System.out.println(pla);
pnr[px]=Integer.parseInt(pla[0]); ptal[px]=(pla[1]); pplay[px]=(pla[2]); pab[px]=Integer.parseInt((pla[3])); pavg[px]=((pla[4])); ptwob[px]=Integer.parseInt((pla[5])); pthreeb[px]=Integer.parseInt((pla[6])); phr[px]=Integer.parseInt((pla[7])); pbb[px]=Integer.parseInt((pla[8])); pso[px]=Integer.parseInt((pla[9]));
px++;
} br.close(); } catch (IOException e) { e.printStackTrace(); } //read in batter info String ftal[] = new String[10000]; int fnr[] = new int[10000]; String fplay[] = new String[10000]; int fab[] = new int[10000]; String favg[] = new String[10000]; int ftwob[] = new int[10000]; int fthreeb[] = new int[10000]; int fhr[] = new int[10000]; int fbb[] = new int[10000]; int fso[] = new int[10000]; int fa;
//Scanner inFile;
//PrintWriter outFile;
int fy=0; int fx=0; double fc=0.0; double fd=0.0; //read batting try {
BufferedReader br = new BufferedReader(new FileReader("c:\\test\\batting_ratings.csv")); //na3="c:\\test\\batting_ratings.csv"; //inFile2 = new Scanner(new File(na3)); //inFile2.nextLine(); line = br.readLine(); while ((line = br.readLine()) != null) { String[] pla = line.split(splitBy); //inS=rBS(sb); //System.out.println(pla);
fnr[fx]=Integer.parseInt(pla[0]); ftal[fx]=(pla[1]); fplay[fx]=(pla[2]); fab[fx]=Integer.parseInt(pla[3]); favg[fx]=(pla[4]); ftwob[fx]=Integer.parseInt(pla[5]); fthreeb[fx]=Integer.parseInt((pla[6])); fhr[fx]=Integer.parseInt((pla[7])); fbb[fx]=Integer.parseInt((pla[8])); fso[fx]=Integer.parseInt((pla[9]));
fx++;
} br.close(); //System.out.println("ye boys"); } catch (IOException e) { e.printStackTrace(); }
//todo general
//todo pitchers fuck me! int a, ho=0; double h9[] = new double [500]; double bb9[] = new double [500]; double so9[] = new double [500]; double d9[] = new double [500]; double hr9[] = new double [500]; double per9[] = new double [500]; boolean bri[] = new boolean [500]; String pRole[] = new String[500]; double ip, ga=0.0, gs=0.0, hr=0.0, bb=0.0,so=0.0, hit=0.0; String pPid[] = new String[100000]; int pYear[] = new int[100000]; double pG[] = new double[100000]; double pGS[] = new double[100000]; double pIpo[] = new double[100000]; double pHit[] = new double[100000]; double pHrun[] = new double[100000]; double pBall[] = new double[100000]; double pSout[] = new double[100000]; int pPrime[] = new int[500]; int pFt; int pInch; String fieldP[]=new String[500]; String rangeP[] = new String[500]; String pBat[] = new String[500]; String pThrow[] = new String[500]; String pheight[] = new String[500]; String pSpeed[] = new String[500]; String pSteal[] = new String[500]; String pEnd[] = new String[500]; String pOrigin[] = new String[500]; String pBirth[] = new String[500]; int pJersy[] = new int[500]; Random rn = new Random(); int rInt = rn.nextInt(100) + 1; int pWeight[] = new int[500]; double pio, ppo, ppa, pe; double endP=0.0; double fp,fpe,perC; int pPri[] = new int[10000]; double pPriIP[] = new double [500];
int pp=0; try {
BufferedReader br = new BufferedReader(new FileReader("c:\\test\\Pitching.csv")); //na3="c:\\test\\batting_ratings.csv"; //inFile2 = new Scanner(new File(na3)); //inFile2.nextLine(); line = br.readLine(); while ((line = br.readLine()) != null) { String[] pla = line.split(splitBy); //inS=rBS(sb); //System.out.println(pla);
pPid[pp]=(pla[0]); pYear[pp]=Integer.parseInt(pla[1]); pG[pp]=Double.parseDouble(pla[2]); pGS[pp]=Double.parseDouble(pla[3]); pIpo[pp]=Double.parseDouble(pla[4]); pHit[pp]=Double.parseDouble(pla[5]); pHrun[pp]=Double.parseDouble(pla[6]); pBall[pp]=Double.parseDouble(pla[7]); pSout[pp]=Double.parseDouble(pla[8]);
pp++;
} br.close(); //System.out.println("ye boys2"); } catch (IOException e) { e.printStackTrace(); } int bril=0; double check=0.0; for (b=0;b<p;b++) { ip=0; hit=0; ga=0; gs=0; hr=0; bb=0; bri[b]= false; so=0; bril=0; pio=0; ppo=0; ppa=0; pe=0; for (a=0; a<pp;a++) { if (priP[b].equals(pPid[a])) { //System.out.println("yes"); ip+=pIpo[a]; ga+=pG[a]; gs+=pGS[a]; hr+=pHrun[a]; bb+=pBall[a]; so+=pSout[a]; hit+=pHit[a]; if ((pIpo[a]> 240)) { check=((pHit[a]/(pIpo[a]/3))*9); if (check < 8.1 && check > 0.1) { //check=(pHit[a]/(pIpo[a]/3)); //System.out.println(check); if ((pGS[a]>10)||(pG[a]>39)) { bril++; //System.out.println(priP[b]+","+check); }
} }
}
pPriIP[b]=ip;
}
if (bril > 4 ) { bri[b]=true; System.out.println(priP[b]+", is brilliant"); }
//System.out.println(priP[b]+", is brilliant"); h9[b]=(hit/(ip/3))*9; //System.out.println(h9[b]); bb9[b]=(bb/(ip/3))*9; so9[b]=(so/(ip/3))*9; hr9[b]=(hr/(ip/3))*9;
pRole[b]=starter(gs,ga);
for (a=0; a<fn; a++) {
if(priP[b].equals(fpri[a])) { //System.out.println(priP[b]+","+fpri[a]); pio+=fIO[a]; ppo+=fPO[a]; ppa+=fA[a]; pe+=fE[a];
}
if (ppo<1) { ppo=1; } }
if ((ppo/((pio/3)/9) > 0.8)) { rangeP[b]="A"; } else if ((ppo/((pio/3)/9)> 0.6)) { rangeP[b]="B"; } else if ((ppo/((pio/3)/9) > 0.4)) { rangeP[b]="C"; } else if ((ppo/((pio/3)/9) > 0.2)) { rangeP[b]="D";
} else { rangeP[b]="E"; }
//System.out.println(priP[b]+ rangeP[b]+ ","+pio+","+ppo + ","+ ppa + ","+ pe); fp=ppo+ppa; fpe=fp+pe; DecimalFormat df = new DecimalFormat("#.###"); //System.out.println(fp+","+fpe); perC=fp/fpe; fieldP[b]=((df.format(perC))); for (a=0; a<x; a++) { if(priP[b].equals(pid[a])) {
//pPri[b]=nr1[a]; pPrime[b]=1; pFt=hi[a]/12; pInch=hi[a]% 12; pheight[b]=(pFt +"-"+pInch); pWeight[b]=wei[a]; pJersy[b]=rn.nextInt(99) + 1; pBirth[b]=(bM[a]+ "/" + bD[a]+"/"+bY[a]); pThrow[b]=thro[a]; pBat[b]=bat[a]; pSpeed[b]="E"; pSteal[b]="E"; pOrigin[b]=(bC[a]+"|"+bS[a]); endP=((pIpo[b]/3)/ pG[b]); if (pRole[b].equals("SP")) { pEnd[b]=sEnd(endP); } else { pEnd[b]=mEnd(endP); } }
}
}
//pitchers ratings String Phit[] = new String[250]; int Pd[] = new int[250]; int Pt[] = new int[250]; int Ph[] = new int[250]; int Pb[] = new int[250]; int Ps[] = new int[250]; int pge; //DecimalFormat dff = new DecimalFormat("#");
//output general pitchers
int pGet=0; a=0;
for (b=0;b<p;b++) { pGet=posi(play1f,pP1,y); a=pGet; pPri[b]=Integer.parseInt(play1L[a]); play1f[a]=firP[b]; play1L[a]=lastP[b]; bDay1[a]=pBirth[b]; pP1[a]=1; range1[a]=rangeP[b]; pct1[a]=fieldP[b]; pRole1[a]=pRole[b]; ori1[a]=pOrigin[b]; throw1[a]=pThrow[b]; hi1[a]=pheight[b]; wei1[a]=pWeight[b]; bat1[a]=pBat[b]; jer1[a]=pJersy[b]; spee1[a]=pSpeed[b]; steal1[a]=pSteal[b]; pitEn1[a]=pEnd[b];
}
//todobatters fuck me fuck me fuck me int aba, bho=0; double hits[] = new double [500]; double dub[] = new double [500]; double trip[] = new double [500]; double homer[] = new double [500]; double walks[] = new double [500]; double swing[] = new double [500]; double aBats[] = new double [500]; boolean briB[] = new boolean [500]; boolean briH[] = new boolean [500];
double bhit=0.0, bhr=0.0, bbb=0.0,bso=0.0, bdub=0.0, btri=0.0, abat, bsb, bcs;
int bYear[] = new int[100000]; String bPid[] = new String[100000]; double bHit[] = new double[100000]; double aB[] = new double[100000]; double bHrun[] = new double[100000]; double bBall[] = new double[100000]; double bSout[] = new double[100000]; double bDub[] = new double[100000]; double bTrip[] = new double[100000]; double bSB[] = new double[100000]; double bCS[] = new double[100000]; double bSO[] = new double[100000]; int bPrime[] = new int[500]; boolean bhomer[] = new boolean[500]; double checkH=0.0; int brilh; int bFt; int bInch; String fieldB[]=new String[500]; String rangeB[] = new String[500]; String bBat[] = new String[500]; String bThrow[] = new String[500]; String bheight[] = new String[500]; String bSpeed[] = new String[500]; String bSteal[] = new String[500];
String bOrigin[] = new String[500]; String bBirth[] = new String[500]; String bCat[] = new String[500]; String bOFa[] = new String[500]; int bPa[] = new int[500]; int bJersy[] = new int[500]; //Random rn = new Random(); int bInt = rn.nextInt(100) + 1; int bWeight[] = new int[500]; //double ab, bHits, dou, trips, hrs, wal, souts; boolean isOF; boolean isC; //double fp,fpe,perC; int bPri[] = new int[500];
int pf=0; try {
BufferedReader br = new BufferedReader(new FileReader("c:\\test\\Batting.csv")); //na3="c:\\test\\batting_ratings.csv"; //inFile2 = new Scanner(new File(na3)); //inFile2.nextLine(); line = br.readLine(); while ((line = br.readLine()) != null) { String[] pla = line.split(splitBy); //inS=rBS(sb); //System.out.println(pla);
bPid[pf]=(pla[0]); bYear[pf]=Integer.parseInt(pla[1]); aB[pf]=Double.parseDouble(pla[2]); bHit[pf]=Double.parseDouble(pla[3]); bDub[pf]=Double.parseDouble(pla[4]); bTrip[pf]=Double.parseDouble(pla[5]); bHrun[pf]=Double.parseDouble(pla[6]); bSB[pf]=Double.parseDouble(pla[7]); bCS[pf]=Double.parseDouble(pla[8]); bBall[pf]=Double.parseDouble(pla[9]); bSO[pf]=Double.parseDouble(pla[10]);
pf++;
} br.close(); //System.out.println("ye boys2"); } catch (IOException e) { e.printStackTrace(); }
for (b=0; b<f; b++) { hit=0; ga=0; gs=0; hr=0; bb=0; bri[b]= false; so=0; bril=0; abat=0.0; bdub=0.0; btri=0.0; bsb=0.0; bcs=0.0; bbb=0; brilh=0; bhr=0; bso=0; bhomer[b]=false; isOF=false; isC=false;
for (a=0;a<pf;a++) { if (priF[b].equals(bPid[a])) { hit+=bHit[a]; abat+=aB[a]; bhr+=bHrun[a]; bdub+=bDub[a]; btri+=bTrip[a]; bbb+=bBall[a]; bso+=bSO[a]; bsb+=bSB[a]; bcs+=bCS[a];
if (abat > 200.0) { check=(bHit[a]/aB[a]); if (check > 0.300) { bril++; } checkH=bHrun[a]; if(checkH > 30) { brilh++; }
}
} } dub[b]=bdub; aBats[b]=abat; swing[b]=bso; homer[b]=bhr; walks[b]=bbb; trip[b]=btri; hits[b]=hit; bSteal[b]=bSt(bsb,bcs); bSpeed[b]=bSe(abat, bsb);
if (bril > 4 ) { bri[b]=true; System.out.println(priF[b]+", is brilliant"); } if (brilh > 4 ) { bhomer[b]=true; System.out.println(priF[b]+", is brilliant HR"); }
//bPrime=getPos(priF[b],fpos[]); int base2[]= new int[8]; int base[]= new int[8]; int bc, jc;
for (a=0;a<fn;a++) { for (bc=0;bc<8;bc++) { base[bc]=0; base2[bc]=0; }
if (priF[b].equals(fpri[a])) { // if(priF[b].equals("grahaty01")) // { // System.out.println("here is the issue, "+fpos[a]); // } //System.out.println(fpos[a]); if (fpos[a].equals("1B")) { //System.out.println("FB"); base2[1]++; base[1]+=fIO[a]; } else if (fpos[a].equals("2B")) { //System.out.println("SB"); base2[2]++; base[2]+=fIO[a]; } else if (fpos[a].equals("3B")) { base2[3]++; base[3]+=fIO[a]; } else if (fpos[a].equals("SS")) { base2[4]++; base[4]+=fIO[a]; } else if (fpos[a].equals("C")) { if (fIO[a]<5) { fIO[a]=5; } base2[0]++; base[0]+=fIO[a]; } else if (fpos[a].equals("OF")) { for (jc=0;jc<fo;jc++) {
if(priF[b].equals(ofpri[jc])) { /* * if(priF[b].equals("grahaty01")) { System.out.println(fposO[jc]); } */ if (fposO[jc].equals("LF")) {
base2[5]++; base[5]+=foIo[jc]; } else if (fposO[jc].equals("CF")) { base2[6]++; base[6]+=foIo[jc]; } else if (fposO[jc].equals("RF")) { base2[7]++; base[7]+=foIo[jc]; } } }
}
} //bubble can throw an issue when have same stats if (base[7]>=base[6]&&base[7]>base[5]&&base[7]>base[4]&&base[7]>base[3]&&base[7]>base[2]&&base[7]>base[1]&&base[7]>base[0] ) { bPrime[b]=9; } else if (base[6]>base[7]&&base[6]>=base[5]&&base[6]>base[4]&&base[6]>base[3]&&base[6]>base[2]&&base[6]>base[1]&&base[6]>base[0] ) { bPrime[b]=8; } else if (base[5]>base[7]&&base[5]>base[6]&&base[5]>base[4]&&base[5]>base[3]&&base[5]>base[2]&&base[5]>base[1]&&base[5]>base[0] ) { bPrime[b]=7; } else if (base[4]>base[7]&&base[4]>base[6]&&base[4]>base[5]&&base[4]>base[3]&&base[4]>base[2]&&base[4]>base[1]&&base[4]>base[0] ) { bPrime[b]=6; } else if (base[3]>base[7]&&base[3]>base[6]&&base[3]>base[5]&&base[3]>base[4]&&base[3]>base[2]&&base[3]>base[1]&&base[3]>base[0] ) { bPrime[b]=5; } else if (base[2]>base[7]&&base[2]>base[6]&&base[2]>base[5]&&base[2]>base[4]&&base[2]>base[3]&&base[2]>base[1]&&base[2]>base[0] ) { bPrime[b]=4; } else if (base[1]>base[7]&&base[1]>base[6]&&base[1]>base[5]&&base[1]>base[4]&&base[1]>base[3]&&base[1]>base[2]&&base[1]>base[0] ) { bPrime[b]=3; //System.out.println("here is FB"); } else if (base[0]>base[7]&&base[0]>base[6]&&base[0]>base[5]&&base[0]>base[4]&&base[0]>base[3]&&base[0]>base[2]&&base[0]>base[1] ) { bPrime[b]=2; }
} if (bPrime[b]==0) { System.out.println(priF[b]+", "+fpos[a] ); } //System.out.println(bPrime[b]); double ios,pout,ba, be, dp, sb, cs; ios=0.1;pout=0.1;ba=0.1; be=0.1; dp=0.1;sb=0.1;;cs=0.1; for (a=0;a<fn;a++) {
if (priF[b].equals(fpri[a])) {
if (bPrime[b]==2&&fpos[a].equals("C")) { ios+=fIO[a]; pout+=fPO[a]; ba+=fA[a]; be+=fE[a]; sb+=fGSA[a]; cs+=fTO[a]; isC=true;
} else if (bPrime[b]==3 && fpos[a].equals("1B")) { ios+=fIO[a]; pout+=fPO[a]; ba+=fA[a]; be+=fE[a];
} else if (bPrime[b]==4 && fpos[a].equals("2B")) { ios+=fIO[a]; pout+=fPO[a]; ba+=fA[a]; be+=fE[a];
} else if (bPrime[b]==5 && fpos[a].equals("3B")) { ios+=fIO[a]; pout+=fPO[a]; ba+=fA[a]; be+=fE[a];
} else if (bPrime[b]==6 && fpos[a].equals("SS")) { ios+=fIO[a]; pout+=fPO[a]; ba+=fA[a]; be+=fE[a];
}
} } if(isC) { bCat[b]=batCat(sb, cs); } else { bCat[b]="-"; } for (a=0;a<fo;a++) { //for (a=0;a<fo;a++)
if (bPrime[b]==7 && fposO[a].equals("LF")) { ios+=foIo[a]; pout+=foPO[a]; ba+=foA[a]; be+=foE[a]; isOF=true;
} else if (bPrime[b]==8 && fposO[a].equals("CF")) { ios+=foIo[a]; pout+=foPO[a]; ba+=foA[a]; be+=foE[a]; isOF=true;
} if (bPrime[b]==9 && fposO[a].equals("RF")) { ios+=foIo[a]; pout+=foPO[a]; ba+=foA[a]; be+=foE[a]; isOF=true;
}
} if (isOF) { bOFa[b]=armOF(ios , ba); } else { bOFa[b]="-"; } DecimalFormat df = new DecimalFormat("#.###"); perC=(pout+ba)/(pout+ba+be); fieldB[b]=((df.format(perC))); if ((pout/((ios/3)/9) > 8.1)) { rangeB[b]="A"; } else if ((pout/((ios/3)/9)> 6.1)) { rangeB[b]="B"; } else if ((pout/((ios/3)/9) > 4.4)) { rangeB[b]="C"; } else if ((pout/((ios/3)/9) > 1.2)) { rangeB[b]="D";
} else { rangeB[b]="E"; } //System.out.println(fieldB[b]+", "+ rangeB[b]); for (a=0; a<x; a++) { if(priF[b].equals(pid[a])) {
//pPri[b]=nr1[a];
pFt=hi[a]/12; pInch=hi[a]% 12; bheight[b]=(pFt +"-"+pInch); bWeight[b]=wei[a]; bJersy[b]=rn.nextInt(99) + 1; bBirth[b]=(bM[a]+ "/" + bD[a]+"/"+bY[a]); bThrow[b]=thro[a]; bBat[b]=bat[a];
bOrigin[b]=(bC[a]+"|"+bS[a]);
}
}
}
for (b=0;b<f;b++) { a=fosi(play1f,pP1,y); bPri[b]=Integer.parseInt(play1L[a]); play1f[a]=firF[b]; play1L[a]=lastF[b]; bDay1[a]=bBirth[b]; pP1[a]=bPrime[b]; range1[a]=rangeB[b]; pct1[a]=fieldP[b]; pRole1[a]=""; ori1[a]=bOrigin[b]; throw1[a]=bThrow[b]; hi1[a]=bheight[b]; wei1[a]=bWeight[b]; bat1[a]=pBat[b]; jer1[a]=bJersy[b]; spee1[a]=bSpeed[b]; steal1[a]=bSteal[b]; pitEn1[a]=""; cat1[a]=bCat[b]; out1[a]=bOFa[b];
}
b=0;
String name4="c:\\test\\d_players_general.csv"; outFile = new PrintWriter(name4); String wtr; String head = "Nr,LastName,FirstName,BirthDate,PrimaryPostion,Range,Pct,PitchersRole,Bats,Throws,JerseyNumber,Weight,Height,Speed,Stealing,PitcherEndurance,Origin,CatcherArm,OutfieldArm"; outFile.println(head.toString()); for (b=0;b<y;b++) { //pPri[b]=nr1[b]; wtr=(nr1[b]+","+play1L[b]+","+play1f[b]+","+bDay1[b]+","+pP1[b]+","+range1[b]+","+pct1[b]+","+pRole1[b]+","+bat1[b]+","+throw1[b]) +","+jer1[b]+","+wei1[b]+","+hi1[b]+","+spee1[b]+","+steal1[b]+","+pitEn1[b]+","+ori1[b]+","+cat1[b]+","+out1[b]; outFile.println(wtr.toString());
} outFile.close();
//output pitchers for (b=0;b<p;b++) {
pge=pRate( pPri[b], px, pnr); //System.out.println(firP[b]+" "+ lastP[b]+", "+pPri[b]+", "+ h9[b]+ ", " +so9[b]); pavg[pge]= ".320"; pavg[pge+1]= ".320"; pavg[pge+2]= potH(h9[b],bri[b], pPriIP[b]); ptwob[pge]= 35; ptwob[pge+1]= 35; ptwob[pge+2]= potD(h9[b], pPriIP[b]); phr[pge]= 35; phr[pge+1]= 35; phr[pge+2]= potHr(hr9[b], pPriIP[b]); pbb[pge]= 90; pbb[pge+1]= 90; pbb[pge+2]= potB(bb9[b], pPriIP[b]); pso[pge]= 45; pso[pge+1]= 45; pso[pge+2]= potS(so9[b], pPriIP[b]); pplay[pge]= (firP[b]+" "+ lastP[b]); pplay[pge+1]= (firP[b]+" "+ lastP[b]); pplay[pge+2]= (firP[b]+" "+ lastP[b]);
} name2="c:\\test\\c_pitching_ratings.csv"; outFile = new PrintWriter(name2); String wtr1; head = "Nr,Category,Player,AB(Constant),AVG,2B,3B,HR,BB,K"; outFile.println(head.toString()); for (b=0;b<px;b++) { wtr1=(pnr[b]+","+ptal[b]+","+pplay[b]+","+pab[b]+","+pavg[b]+","+ptwob[b]+","+pthreeb[b]+","+phr[b]+","+pbb[b]+ ","+pso[b]); outFile.println(wtr1.toString());
} outFile.close(); for (b=0;b<f;b++) {
pge=pRate( bPri[b], fx, fnr); //System.out.println(firP[b]+" "+ lastP[b]+", "+pPri[b]+", "+ h9[b]+ ", " +so9[b]); favg[pge]= ".220"; favg[pge+1]= ".220"; favg[pge+2]= potfH(hits[b], aBats[b], bri[b]); ftwob[pge]= 10; ftwob[pge+1]= 10; ftwob[pge+2]= potfD(dub[b], aBats[b]); fhr[pge]= 6; fhr[pge+1]= 6; fhr[pge+2]= potfHr(homer[b], aBats[b], bhomer[b]); fbb[pge]= 30; fbb[pge+1]= 30; fbb[pge+2]= potfB(walks[b], aBats[b]); fso[pge]= 130; fso[pge+1]= 130; fso[pge+2]= potfS(swing[b],aBats[b]); fplay[pge]= (firF[b]+" "+ lastF[b]); fplay[pge+1]= (firF[b]+" "+ lastF[b]); fplay[pge+2]= (firF[b]+" "+ lastF[b]); fthreeb[pge]= 1; fthreeb[pge+1]= 1; fthreeb[pge+2]=potfT(trip[b], aBats[b]); System.out.println(pge + " " + lastF[b]+", "+ homer[b]+" "+ aBats[b]+" "+bri[b]);
} name2="c:\\test\\c_batting_ratings.csv"; outFile = new PrintWriter(name2); //String wtr1; head = "Nr,Category,Player,AB(Constant),AVG,2B,3B,HR,BB,K"; outFile.println(head.toString()); for (b=0;b<fx;b++) { wtr1=(fnr[b]+","+ftal[b]+","+fplay[b]+","+fab[b]+","+favg[b]+","+ftwob[b]+","+fthreeb[b]+","+fhr[b]+","+fbb[b]+ ","+fso[b]); outFile.println(wtr1.toString());
} outFile.close();
////output general fielders
//output fielders
}
public static int getPos(String c, String []a) { int b=0;
return b;
} public static String potH(double a,boolean c, double d) { String p="1"; if (c) { return "5"; } else if (d < 150.0) { return "2"; } else if (a < 7.7) { return "5"; } else if (a < 9.2) { return "4"; } else if (a < 10.7) { return "3"; } else if (a < 12.1) { return "2"; }
return p;
} public static String potfH(double a, double d,boolean h) { String p="1"; if (h) { return "5"; } if (d < 550.0) { return "2"; } else if (a/d > 0.301) { return "5"; } else if (a/d > 0.270) { return "4"; } else if (a/d > 0.250) { return "3"; } else if (a /d > 0.225) { return "2"; }
return p;
} public static int potD(double a, double d) { int p=1; if (d < 150.0) { return 2; } else if (a < 8.5) { return 5; } else if (a < 10.0) { return 4; } else if (a < 11.5) { return 3; } else if (a < 13.0) { return 2; }
return p;
} public static int potfD(double a, double d) { int p=1; double c; c=d/550; if (d < 250.0) { return 2; } else if (a/c > 36.0) { return 5; } else if (a/c > 27.0) { return 4; } else if (a/c > 18.0) { return 3; } else if (a/c > 9.0) { return 2; }
return p;
} public static int potfHr(double a, double d, boolean f) { int p=1; if (f) { return 5; } double c; c=d/550; if (d < 250.0) { return 2; } else if (a/c > 30.0) { return 5; } else if (a/c > 21.0) { return 4; } else if (a/c > 13.0) { return 3; } else if (a/c > 6.0) { return 2; }
return p;
} public static int potfT(double a, double d) { int p=1; double c; c=d/550; if (d < 250.0) { return 2; } else if (a/c > 8.0) { return 5; } else if (a/c > 27.0) { return 4; } else if (a/c > 18.0) { return 3; } else if (a/c > 9.0) { return 2; }
return p;
} public static int potHr(double a,double d) { int p=1;
if (a < 0.7) { return 5; } else if (a < 1.2) { return 4; } else if (a < 3.4) { return 3; } else if (a < 4.8) { return 2; }
return p;
} public static int potB(double a,double d) { int p=1; if (d < 150) { return 2; } else if (a < 2.0) { return 5; } else if (a < 3.2) { return 4; } else if (a < 4.4) { return 3; } else if (a < 6.1) { return 2; }
return p;
} public static int potS(double a,double d) { int p=1; if (a > 8.0) { return 5; } else if (a > 6.0) { return 4; } else if (a > 4.0) { return 3; } else if (a > 2.1) { return 2; }
return p;
}
public static int posi(String a[],int b[], int c) { int aa=0, bb; for (bb=0; bb< c; bb++) { if (a[bb].equals("Draft")&& b[bb]==1) return bb; }
return aa; }
public static int pRate( int b, int a, int c[]) { int bb; for (bb=0; bb< a; bb++) { if (b ==(c[bb])) return bb; }
return bb; }
public static String starter(double start, double g) { if(start < 29.0) { return "MR"; } else if (( start / g) > 0.5) { return "SP"; } return "MR"; } public static String sEnd(double aa) { if (aa >6.0) { return "A"; } else if (aa >5.0) { return "B"; } else if (aa >4.5) { return "C"; } else if (aa >3.5) { return "D"; }
return "E"; } public static int fosi(String a[],int b[], int c) { int aa=0, bb; for (bb=0; bb< c; bb++) { if (a[bb].equals("Draft")&& b[bb]!=1) return bb; }
return aa; } public static String mEnd(double aa) { if (aa >3.0) { return "A"; } else if (aa >2.0) { return "B"; } else if (aa >1.5) { return "C"; } else if (aa >1.1) { return "D"; } return "E";
} public static String bSt(double a, double b) { String c="E"; if(a/(a+b)> 0.75) { return "A"; } else if(a/(a+b)> 0.66) { return "B"; } else if(a/(a+b)> 0.57) { return "C"; } else if(a/(a+b)> 0.50) { return "D"; } return c; } public static String bSe(double a, double b) { String c="E"; if(b/(a/550)> 39.0) { return "A"; } else if (b/(a/550) > 30.66) { return "B"; } else if (b/(a/550)> 18.57) { return "C"; } else if(a/(a+b)> 6.50) { return "D"; } return c; } public static String batCat(double a, double b) { String c="E"; if(b/(a+b)> 0.38) { return "A"; } else if (b/(a+b) > 0.32) { return "B"; } else if (b/(a+b)> 0.26) { return "C"; } else if(b/(a+b)> 0.20) { return "D"; } return c; } public static String armOF(double a, double b) { String c="E"; //System.out.println((b/((a/3)/550)) ); if(b/((a/3) /550) > 4.05) { return "A"; } else if (b/((a/3) /550) > 3.8) { return "B"; } else if(b/((a/3) /550) > 3.3) { return "C"; } else if(b/((a/3) /550) > 2.5) { return "D"; } return c; } public static int potfHR(double a, double d, boolean f) { int p=1; if(f) { return 5; } double c; c=d/550; if (d < 250.0) { return 2; } else if (a/c > 36.0) { return 5; } else if (a/c > 27.0) { return 4; } else if (a/c > 18.0) { return 3; } else if (a/c > 9.0) { return 2; }
return p; } public static int potfS(double a, double d) { int p=1; double c; c=d/550; if (d < 250.0) { return 2; } else if (a/c < 48.0) { return 5; } else if (a/c < 86.0) { return 4; } else if (a/c < 124.0) { return 3; } else if (a/c < 162.0) { return 2; }
return p; } public static int potfB(double a, double d) { int p=1; double c; c=d/550; if (d < 250.0) { return 2; } else if (a/c > 80.0) { return 5; } else if (a/c > 60.0) { return 4; } else if (a/c > 40.0) { return 3; } else if (a/c > 20.0) { return 2; }
return p; }
}
|
|
Reddington
General Manager
Atlanta Braves
Posts: 17,837
|
Post by Reddington on Jul 26, 2023 10:00:53 GMT -5
just was talking to Chris and a couple of the other GMs, going forward going to refine the top seasons code
Jay and Murphy get to keep their bril hits
|
|
Bish
General Manager
Philadelphia Phillies
Posts: 3,263
|
Post by Bish on Jul 26, 2023 10:40:23 GMT -5
Is everything finalized or no? no, gripes are still taking place
|
|