/$yatzee_inc string gfx[7] = { //? "143fffc400028000180f8181fc183fe1838e1838e1801e1803c18078180f0180e0180e018000180e0180e0180001400023fffc", //1 "143fffc400028000180001800018000180001800018060180b0180f0180601800018000180001800018000180001400023fffc", //2 "143fffc4000280001800318005980079800318000180001800018000180001800018c001960019e0018c00180001400023fffc", //3 "143fffc400028000180031800598007980031800018060180b0180f0180601800018c001960019e0018c00180001400023fffc", //4 "143fffc40002800018c031960599e0798c0318000180001800018000180001800018c031960599e0798c03180001400023fffc", //5 "143fffc40002800018c031960599e0798c031800018060180b0180f0180601800018c031960599e0798c03180001400023fffc", //6 "143fffc40002800018c031960599e0798c031800018c031960599e0798c031800018c031960599e0798c03180001400023fffc" }; string lbl[18]={ "Ones", "Twos", "Threes", "Fours", "Fives", "Sixs", "SubTot", "Bonus", "1 Pair", "2 Pairs", "3 of a Kind", "4 of a Kind", "Full House", "Small St.", "Large St.", "Chance", "Yatzee", "Total"}; int score[18]; int lock[18]; int sel[5]={0,0,0,0,0}; int dice[5]={1,2,3,4,5}; int tcount=0; initScore(){ int i; tcount=0; for(i=0;i<18;i ){ score[i]=0; lock[i]=0; } score[6]=0; lock[6]=1; //score[7]=0; //lock[7]=1; score[17]=0; lock[17]=1; } inrect(int x,int y,int x1,int y1,int x2,int y2){ if(x>=x1 && x<=x2) if(y>=y1 && y<=y2) return(1); return(0); } pdice(int i){ if(sel[i]) bitmap(2 22*i,140,gfx[0]); else bitmap(2 22*i,140,gfx[dice[i]]); } update(){ int i; for(i=0;i<5;i ){ pdice(i); } }