亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fyrad.c

?? 模仿FYRAD32編寫的四子棋游戲
?? C
?? 第 1 頁 / 共 4 頁
字號:
main();
 
getch();
}


void winregister(int victory)
{
   if(victory == 1){
      
      
      setcolor(BLUE);
      rectangle(100,60,420,100);

      
      setfillstyle(SOLID_FILL,BLACK);
      floodfill(90,80,BLUE);
      
      setcolor(YELLOW);
      moveto(105,65);
      settextstyle(1,0,1);      
      outtext("You WIN!Press any key to continue.");
   }
   if(victory == 2){
      
      
      setcolor(BLUE);
      rectangle(100,60,420,100);

      
      setfillstyle(SOLID_FILL,BLACK);
      floodfill(90,80,BLUE);
      
      setcolor(YELLOW);
      moveto(105,65);
      settextstyle(1,0,1);
      outtext("I Win!Press any key to continue.");
   }
   if(victory == 3){
      
      
      setcolor(BLUE);
      rectangle(100,60,420,100);

      
      setfillstyle(SOLID_FILL,BLACK);
      floodfill(90,80,BLUE);
      
      setcolor(YELLOW);
      moveto(140,65);
      settextstyle(1,0,1);
      outtext("Draw(Press any key to continue.)");
   }
}


void flash(int i,int j,int k){
   
    int x;
     
    for(x=0;x<=501+k;x++){

    if(x%2==0){setfillstyle(SOLID_FILL,RED);
	      floodfill((j+3)*40,(i+3)*40,BLUE);}

    if(x%2==1){setfillstyle(SOLID_FILL,YELLOW);
	      floodfill((j+3)*40,(i+3)*40,BLUE);}
                      }  

}

void flashcolor(int i,int j,int k){
   
    int x;
     
    for(x=0;x<=501+k;x++){

    if(x%2==0){setfillstyle(SOLID_FILL,WHITE);
	      floodfill((j+3)*40,(i+3)*40,BLUE);}

    if(x%2==1){setfillstyle(SOLID_FILL,LIGHTRED);
	      floodfill((j+3)*40,(i+3)*40,BLUE);}
                      }  

}


void help(void){
    int i,j;
  setcolor(BLUE);
  rectangle(0,10,360,275);
  setfillstyle(SOLID_FILL,BLACK);
  floodfill(20,20,BLUE);
  
  setcolor(BLUE);
  settextstyle(2,0,5);
    
  for(i=0;i<=328;i++){
     if(i%2==0){
       j=i/2;
       j=j%15;
        setcolor(j);
        outtextxy(20,60-20,"Use the keyboard to put the chessman, ");
        outtextxy(20,110-20,"get four pieces of the same color in a");
        outtextxy(20,160-20,"row in all directions (horizontal,ve");
        outtextxy(20,210-20,"-rtical or diagonal),then you'll win.");
        outtextxy(40,260-10,"Press any key to continue.");
       }
      if(i%2==1){
        setcolor(15);
        outtextxy(20,60-20,"Use the keyboard to put the chessman, ");
        outtextxy(20,110-20,"get four pieces of the same color in a");
        outtextxy(20,160-20,"row in all directions (horizontal,ve");
        outtextxy(20,210-20,"-rtical or diagonal),then you'll win.");
        outtextxy(40,260-10,"Press any key to continue.");
       } 
     }
  
    
}





 
   
   
    

void shortkey(void){
   int i,j;
  setcolor(BLUE);
  rectangle(0,10,360,275);
  setfillstyle(SOLID_FILL,BLACK);
  floodfill(20,20,BLUE);
  
  setcolor(BLUE);
  settextstyle(2,0,5);
    
    
   for(i=0;i<=328;i++){
     if(i%2==0){
       j=i/2;
       j=j%15;
        setcolor(j);       
        outtextxy(20,60-20,"ENTER: Put a chessman on the chessboard.");
        outtextxy(20,110-20,"RIGHT & LEFT: Move a chessman of yours.   ");
        outtextxy(20,160-20,"DOWN: Save game.                       ");
        outtextxy(20,210-20,"ESC: Return to the menu.               ");
        outtextxy(40,260-10,"Press any key to continue.");
       }
      if(i%2==1){
        setcolor(15);
        outtextxy(20,60-20, "ENTER: Put a chessman on the chessboard.");
        outtextxy(20,110-20,"RIGHT & LEFT: Move a chessman of yours.   ");
        outtextxy(20,160-20,"DOWN: Save game.                       ");
        outtextxy(20,210-20,"ESC: Return to the menu.               ");
        outtextxy(40,260-10,"Press any key to continue.");
       } 
     }
   
    
}



 
 


void save(void){
 

  int i,j;  
  setcolor(BLUE);
  rectangle(0,10,360,275);
  setfillstyle(SOLID_FILL,BLACK);
  floodfill(20,20,BLUE);
  
  setcolor(BLUE);
  settextstyle(2,0,5);


  for(i=0;i<=328;i++){
     if(i%2==0){
       j=i/2;
       j=j%15;
        setcolor(j);       
        outtextxy(20,60-20,"If you wangt to save the game,            ");
         outtextxy(20,110-20,"when you are playing.                     ");  
         outtextxy(20,160-20,"Please press the key 'DOWN' ,          ");
         outtextxy(20,210-20,"After you put a chessman.             ");
         outtextxy(40,260-10,"Press any key to continue.");

       }
      if(i%2==1){
        setcolor(15);
        outtextxy(20,60-20,"If you wangt to save the game,            ");
         outtextxy(20,110-20,"when you are playing.                     ");  
         outtextxy(20,160-20,"Please press the key 'DOWN' ,          ");
         outtextxy(20,210-20,"After you put a chessman.             ");
         outtextxy(40,260-10,"Press any key to continue.");

       } 
     }
         
}


void change(void){
 

  int i,j;  
  setcolor(BLUE);
  rectangle(0,10,360,275);
  setfillstyle(SOLID_FILL,BLACK);
  floodfill(20,20,BLUE);
  
  setcolor(BLUE);
  settextstyle(2,0,5);


  for(i=0;i<=328;i++){
     if(i%2==0){
       j=i/2;
       j=j%15;
        setcolor(j);       
         outtextxy(20,60-20,"If you want to change the color of chessman,");
         outtextxy(20,110-20,"please press the button 'Color'.           ");  
         outtextxy(20,160-20,"If you want to change the level of game,");
         outtextxy(20,210-20,"please press the button 'Level'.           ");
         outtextxy(40,260-10,"Press any key to continue.");

       }
      if(i%2==1){
        setcolor(15);
        outtextxy(20,60-20,"If you want to change the color of chessman,");
         outtextxy(20,110-20,"please press the button 'Color'.           ");  
         outtextxy(20,160-20,"If you want to change the level of game,");
         outtextxy(20,210-20,"please press the button 'Level'.           ");
         outtextxy(40,260-10,"Press any key to continue.");
       } 
     }
         
}


void newpicture(void){
int k;
setviewport(100,80,475,475,1);
 setcolor(BLUE);
  rectangle(0,10,360,275);
  setfillstyle(SOLID_FILL,BLACK);
  floodfill(20,20,BLUE);

  setcolor(14);
  settextstyle(2,0,8);

         outtextxy(20,60-20,"Welcome to Fyrad 32 !         ");
  setcolor(8);
  settextstyle(2,0,5);
         outtextxy(20,110-20,"           Name:hehe                  ");  
         outtextxy(20,160-20,"           Number:301             ");
         outtextxy(20,210-20,"           Teacher:Zhoujun              ");
         outtextxy(40,260-10,"Press any key to continue.");
 k=specialkey();
cleardevice();
 }








void small_main(){
  int i=1;
  int j=3;
  int k;

   k=small_menu(i,j);

  do{
      if(k==1||k==2){k=small_menu(k,j);}
      if(k==3||k==4){k=small_menu(i,k);}
      
    }while(k==1||k==2||k==3||k==4);
  }


int small_menu(int a, int c)
{
   int driver,mode;
   int setview_sx = 170,setview_sy = 120,setview_ex,setview_ey;
   int key1,key2;
   int h[6][6];
   int b[6][6];
   int x,y;
   int i,j;
   int code;

   int cursorx = -140,cursory = -110;


   driver=DETECT;
   mode=0;
   initgraph(&driver,&mode,"..\\bgi");

   setview_ex = setview_sx + 7 * 40;
   setview_ey = setview_sy + 7 * 40;
   setviewport(setview_sx,setview_sy,setview_ex,setview_ey,0);

   drawgame();

   do{
      while(bioskey(1));
      key1 = bioskey(0);
      key1 = key1&0xff?key1&0xff:key1>>8;

      switch(key1){
         case LEFT:if(cursorx < -80 && cursorx > -170){
                      cursorx = 20;
                      drawhelp();
                   }
                   else cursorx -= 80;
                   if(cursorx < -5 && cursorx > -80){
                      drawoptions();
                   }
                   if(cursorx < -80 && cursorx > -170){
                      drawgame();
                   }break;

         case RIGHT:if(cursorx < 125 && cursorx > 10){
                       cursorx = -140;
                       drawgame();
                    }
                    else cursorx += 80;
                    if(cursorx < -5 && cursorx > -80){
                       drawoptions();
                    }
                    if(cursorx < 125 && cursorx >10){
                       drawhelp();
                    }break;

         case ENTER : case DOWN:cursory = -90;
                    if(cursorx < -80 && cursory > -170)
                       drawnewgame();
                    if(cursorx <-5 && cursorx > -80)
                       drawbackward();
                    if(cursorx < 125 && cursorx > 10)
                       drawhowtoplay();
                    do{
                       while(bioskey(1));
                       key2 = bioskey(0);
                       key2 = key2&0xff?key2&0xff:key2>>8;

                       switch(key2){
                          case UP:if(cursorx < -80 && cursorx > -170){
                                     if(cursory < -80 && cursory > -100){
                                        cursory = -30;
                                        drawexit();
                                     }
                                     else if(cursory < -20 && cursory > -80){
                                        cursory -= 20;
                                        if(cursory < -80 && cursory > -100)
                                           drawnewgame();
                                        if(cursory < -60 && cursory > -80)
                                           drawload();
                                        if(cursory < -40 && cursory > -60)
                                           drawsave();
                                     }
                                  }
                                  if(cursorx < -5 && cursorx > -80){
                                     if(cursory < -80 && cursory > -100){
                                        cursory = -50;
                                        drawsize();
                                     }
                                     else if(cursory < -40 && cursory > -80){
                                        cursory -= 20;
                                        if(cursory < -80 && cursory > -100)
                                           drawbackward();
                                        if(cursory < -60 && cursory > -80)
                                           drawcolor();
                                     }
                                  }
                                  if(cursorx < 125 && cursorx > 10){
                                     if(cursory < -80 && cursory > -100){
                                        cursory = -70;
                                        drawshortcutkey();
                                     }
                                     else if(cursory < -60 && cursory > -80){
                                        cursory -= 20;
                                        if(cursory < -80 && cursory > -100)
                                           drawnewgame();
                                     }
                                  }break;

                          case DOWN:if(cursorx < -80 && cursorx > -170){
                                       if(cursory < -20 && cursory > -40){
                                          cursory = -90;
                                          drawnewgame();
                                       }
                                       else if(cursory < -40 && cursory > -100){
                                          cursory += 20;
                                          if(cursory < -60 && cursory > -80)
                                             drawload();
                                          if(cursory < -40 && cursory > -60)
                                             drawsave();
                                          if(cursory < -20 && cursory > -40)
                                             drawexit();
                                       }
                                    }
                                    if(cursorx < -5 && cursorx > -80){
                                       if(cursory < -40 && cursory > -60){
                                          cursory = -90;
                                          drawbackward();
                                       }
                                       else if(cursory < -60 && cursory > -100){
                                          cursory += 20;
                                          if(cursory < -60 && cursory > -80)
                                             drawcolor();
                                          if(cursory < -40 && cursory > -60)
                                             drawsize();
                                          }
                                       }
                                    if(cursorx < 125 && cursorx > 10){
                                       if(cursory < -60 && cursory > -80){
                                          cursory = -90;
                                          drawhowtoplay();
                                       }
                                       else if(cursory < -80 && cursory > -100){
                                          cursory += 20;
                                          if(cursory < -60 && cursory > -80)
                                             drawshortcutkey();
                                       }
                                    }break;

                          case LEFT:clearsubset();
                                    cursory = -90;
                                    if(cursorx < -80 && cursorx > -170){
                                       cursorx = 20;
                                       drawhelp();
                                       drawhowtoplay();
                                    }
                                    else cursorx -= 80;
                                       if(cursorx < -5 && cursorx > -80){
                                          drawoptions();
                                          drawbackward();
                                       }
                                       if(cursorx < -80 && cursorx > -170){
                                          drawgame();
                                          drawnewgame();
                                       }break;

                          case RIGHT:clearsubset();
                                     cursory = -90;
                                     if(cursorx < 125 && cursorx > 10){
                                        cursorx = -140;
                                        drawgame();
                                        drawnewgame();
                                     }
                                     else cursorx += 80;
                                        if(cursorx < -5 && cursorx > -80){
                                          drawoptions();
                                          drawbackward();
                                        }
                                        if(cursorx < 125 && cursorx >10){
                                           drawhelp();
                                           drawhowtoplay();
                                        }break;
                          default :;
                       }
                    }while(key2 != ESC && key2 != ENTER);
                    clearsubset();
                    break;
         default :;
      }
   }while(key1 != ESC && key2 != ENTER);
   if(cursorx < -80 && cursorx > -170){
      if(cursory < -80 && cursory > -100)
       {
        if(a==1&&c==3){
                 for (x=0;x<=5;x++){
	          for(y=0;y<=5;y++){
	           b[x][y]=0;   }  }
            small_put(b,3);  }

        if(a==1&&c==4){
                 for (x=0;x<=5;x++){
	          for(y=0;y<=5;y++){
	           b[x][y]=0;   }  }
            small_put(b,4);  }

        if(a==2&&c==3){
                 for (x=0;x<=5;x++){
	          for(y=0;y<=5;y++){
	           b[x][y]=0;   }  }
            small_put1(b,3);  }

        if(a==2&&c==4){
                 for (x=0;x<=5;x++){
	          for(y=0;y<=5;y++){
	           b[x][y]=0;   }  }
            small_put1(b,4);  }
       }
      if(cursory < -60 && cursory > -80)
         {
           FILE *fp;

           if((fp=fopen("c:\\small_hehe.txt","r"))==NULL)
                     {exit(0);}

           for(i=0;i<6;i++){
              for(j=0;j<6;j++){
                 fscanf(fp,"%5d",&h[i][j]);}}

                fclose(fp);
                small_put(h,c);
           }
      if(cursory < -40 && cursory > -60)
        {save();
        code=specialkey();
        small_main();}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久伊人蜜桃av一区二区| 欧美一区二区三区四区在线观看| 久久99国产精品久久99| 亚洲欧洲精品一区二区三区不卡| 国产丝袜欧美中文另类| 国产欧美一区二区精品秋霞影院 | 日韩中文字幕91| 亚洲最快最全在线视频| 亚洲国产精品一区二区www| 亚洲色图.com| 五月综合激情婷婷六月色窝| 日韩影院免费视频| 麻豆精品精品国产自在97香蕉| 精品无人码麻豆乱码1区2区| 精品一二三四在线| av电影在线观看一区| 日本高清不卡视频| 6080亚洲精品一区二区| 精品国产一区二区三区不卡 | 91麻豆国产精品久久| 日本国产一区二区| 666欧美在线视频| 久久久久免费观看| 亚洲女性喷水在线观看一区| 五月开心婷婷久久| 国产成人免费网站| 欧美亚洲国产一区二区三区| 欧美一卡二卡三卡四卡| 国产精品天天看| 视频一区二区三区入口| 国产激情视频一区二区在线观看 | 国产精品一区二区久久不卡 | 麻豆成人久久精品二区三区小说| 国产精品系列在线观看| 在线影院国内精品| 久久久久久黄色| 亚洲国产中文字幕| 国产91精品一区二区| 欧美美女一区二区在线观看| 久久精品欧美日韩精品 | 国产精品久久久久四虎| 性做久久久久久免费观看欧美| 国产美女精品在线| 欧美高清hd18日本| 中文字幕一区二区三区蜜月| 免费在线看一区| 在线亚洲免费视频| 亚洲国产精品av| 日本亚洲三级在线| 欧美影视一区二区三区| 日本一区二区三级电影在线观看 | 欧美揉bbbbb揉bbbbb| 国产三区在线成人av| 日韩电影在线一区| 欧美亚洲国产bt| 日韩美女精品在线| 成人手机电影网| 久久久亚洲国产美女国产盗摄 | 国产露脸91国语对白| 欧美一区二区三区成人| 亚洲国产aⅴ天堂久久| fc2成人免费人成在线观看播放 | 99视频超级精品| 久久精品在线免费观看| 激情综合色综合久久综合| 在线成人av网站| 午夜欧美大尺度福利影院在线看 | 国产视频在线观看一区二区三区| 免费在线观看视频一区| 91精品国产一区二区| 天天av天天翘天天综合网色鬼国产| 97国产一区二区| 亚洲免费av在线| 91丨九色porny丨蝌蚪| 亚洲欧美一区二区三区极速播放| 成人黄色免费短视频| 国产精品丝袜在线| www.亚洲在线| 亚洲色欲色欲www在线观看| 99久久久久免费精品国产| 136国产福利精品导航| 99精品视频免费在线观看| 国产精品久久久久久久午夜片| 成人网页在线观看| 亚洲黄色av一区| 欧美人妇做爰xxxⅹ性高电影| 午夜精品国产更新| 日韩一区二区三区免费看 | 久久久影视传媒| 国产精品亚洲视频| 亚洲欧美综合网| 欧美日韩在线观看一区二区 | 欧美日韩精品专区| 久久99精品久久只有精品| 亚洲猫色日本管| 欧美综合色免费| 久久精品国产秦先生| 中文字幕的久久| 91成人在线精品| 极品美女销魂一区二区三区| 国产精品天天摸av网| 精品视频一区三区九区| 精品一区二区在线观看| 中文字幕在线观看不卡| 欧美影片第一页| 国产精品一二三四区| 怡红院av一区二区三区| 欧美成人女星排行榜| 97se亚洲国产综合在线| 美国欧美日韩国产在线播放| 国产欧美一区二区精品秋霞影院 | 99精品一区二区| 丝袜美腿亚洲综合| 国产精品美女久久久久久久久久久| 日本韩国一区二区| 国产成人精品免费一区二区| 亚洲第一狼人社区| 中文字幕视频一区二区三区久| 欧美三区免费完整视频在线观看| 久久国产精品露脸对白| 亚洲日本va午夜在线电影| 久久午夜免费电影| 91.成人天堂一区| 99re热这里只有精品视频| 久久精品国产久精国产| 一区二区三区在线免费视频| 久久久影视传媒| 欧美tk丨vk视频| 欧美美女激情18p| 在线观看免费成人| 成人黄色电影在线| 国产乱人伦偷精品视频不卡| 热久久久久久久| 亚洲mv大片欧洲mv大片精品| 一区二区在线观看视频在线观看| 天堂av在线一区| 一区二区三区小说| 欧美—级在线免费片| 欧美成人精品3d动漫h| 欧美久久一区二区| 欧美日韩免费观看一区二区三区| 99精品视频一区二区| 国产98色在线|日韩| 国产精品1024| 国产成人免费在线观看不卡| 国产揄拍国内精品对白| 国精产品一区一区三区mba视频 | 国产99一区视频免费| 国产一区二区三区免费在线观看| 亚洲二区视频在线| 亚洲动漫第一页| 日本不卡一区二区三区高清视频| 水蜜桃久久夜色精品一区的特点| 亚洲一区在线观看免费| 一级特黄大欧美久久久| 一区二区三区.www| 亚洲444eee在线观看| 亚洲v精品v日韩v欧美v专区| 日韩激情一区二区| 免费观看在线综合色| 久久99精品久久久久久动态图| 日韩成人av影视| 国产一区亚洲一区| 99视频超级精品| 欧美日韩视频在线观看一区二区三区| 欧美视频一区二区三区在线观看| 欧美人妇做爰xxxⅹ性高电影 | 99精品视频一区| 欧美日免费三级在线| 日韩情涩欧美日韩视频| 久久免费视频一区| 亚洲女性喷水在线观看一区| 天使萌一区二区三区免费观看| 久久99久久精品| 99久久er热在这里只有精品15| 在线一区二区三区做爰视频网站| 欧美精品自拍偷拍动漫精品| 精品国产一二三| 亚洲欧美aⅴ...| 久久超碰97人人做人人爱| 不卡免费追剧大全电视剧网站| 欧美亚洲丝袜传媒另类| 精品毛片乱码1区2区3区| 中文字幕的久久| 美洲天堂一区二卡三卡四卡视频| 国产成人综合自拍| 精品视频一区三区九区| 日本一区二区高清| 丝袜美腿亚洲色图| 不卡的av在线| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲欧美视频一区| 青青草伊人久久| 99久免费精品视频在线观看| 制服.丝袜.亚洲.另类.中文| 国产精品久久久久久久久搜平片| 日本伊人精品一区二区三区观看方式| 成人三级在线视频| 精品日韩99亚洲| 亚洲123区在线观看|