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

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

?? fyrad.c

?? 模仿FYRAD32編寫的四子棋游戲
?? C
?? 第 1 頁 / 共 4 頁
字號:
#include <stdio.h>
#include <stdlib.h>
#include <bios.h>
#include <conio.h>
#include <graphics.h>
#define ENTER 13
#define UP 72
#define DOWN 80
#define LEFT 75
#define RIGHT 77
#define ESC 27



void Draw(void);
int specialkey();
int search(int a[8][8],int);
void put(int a[8][8],int);
void put1(int a[8][8],int);
int panduan(int a[11][14],int,int);
int panduan1(int a[11][14],int,int);
int aisearch(int a[8][8]);
int judge(int b[8][8],int,int);
int judge1(int b[8][8],int,int);
void winregister(int);
int menu(int,int);
void flash(int,int,int);
void flashcolor(int,int,int);
void help();
void shortkey();
int lowaisearch(void);
void save();
void change();
void newpicture();


void small_Draw(void);
int small_search(int a[6][6],int);
void small_put(int a[6][6],int);
void small_put1(int a[6][6],int);
int small_panduan(int a[9][12],int,int);
int small_panduan1(int a[9][12],int,int);
int aismall_search(int a[6][6]);
int small_judge(int b[6][6],int,int);
int small_judge1(int b[6][6],int,int);
int small_menu(int,int);
int lowaismall_search(void);
void small_main();

void drawgame()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(-170,-120,639,-100);
   setfillstyle(SOLID_FILL,GREEN);
   bar(-160,-120,-120,-100);
   setcolor(RED);
   moveto(-155,-115);
   outtext("Game");
   moveto(-80,-115);
   outtext("Options");
   moveto(15,-115);
   outtext("Help");
}

void drawnewgame()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(-160,-100,-80,-15);
   setcolor(BLACK);
   rectangle(-157,-97,-83,-18);
   setfillstyle(SOLID_FILL,GREEN);
   bar(-152,-92,-88,-80);
   setcolor(RED);
   moveto(-150,-90);
   outtext("New Game");
   moveto(-150,-70);
   outtext("Load");
   moveto(-150,-50);
   outtext("Save");
   moveto(-150,-30);
   outtext("Exit");
}

void drawload()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(-160,-100,-80,-15);
   setcolor(BLACK);
   rectangle(-157,-97,-83,-18);
   setfillstyle(SOLID_FILL,GREEN);
   bar(-152,-72,-88,-60);
   setcolor(RED);
   moveto(-150,-90);
   outtext("New Game");
   moveto(-150,-70);
   outtext("Load");
   moveto(-150,-50);
   outtext("Save");
   moveto(-150,-30);
   outtext("Exit");
}

void drawsave()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(-160,-100,-80,-15);
   setcolor(BLACK);
   rectangle(-157,-97,-83,-18);
   setfillstyle(SOLID_FILL,GREEN);
   bar(-152,-52,-88,-40);
   setcolor(RED);
   moveto(-150,-90);
   outtext("New Game");
   moveto(-150,-70);
   outtext("Load");
   moveto(-150,-50);
   outtext("Save");
   moveto(-150,-30);
   outtext("Exit");
}

void drawexit()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(-160,-100,-80,-15);
   setcolor(BLACK);
   rectangle(-157,-97,-83,-18);
   setfillstyle(SOLID_FILL,GREEN);
   bar(-152,-32,-88,-20);
   setcolor(RED);
   moveto(-150,-90);
   outtext("New Game");
   moveto(-150,-70);
   outtext("Load");
   moveto(-150,-50);
   outtext("Save");
   moveto(-150,-30);
   outtext("Exit");
}

void drawoptions()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(-170,-120,639,-100);
   setfillstyle(SOLID_FILL,GREEN);
   bar(-85,-120,-20,-100);
   setcolor(RED);
   moveto(-155,-115);
   outtext("Game");
   moveto(-80,-115);
   outtext("Options");
   moveto(15,-115);
   outtext("Help");
}

void drawbackward()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(-85,-100,-5,-35);
   setcolor(BLACK);
   rectangle(-82,-97,-8,-38);
   setfillstyle(SOLID_FILL,GREEN);
   bar(-77,-92,-13,-80);
   setcolor(RED);
   moveto(-75,-90);
   outtext("Size");
   moveto(-75,-70);
   outtext("Color");
   moveto(-75,-50);
   outtext("Level");
}

void drawcolor()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(-85,-100,-5,-35);
   setcolor(BLACK);
   rectangle(-82,-97,-8,-38);
   setfillstyle(SOLID_FILL,GREEN);
   bar(-77,-72,-13,-60);
   setcolor(RED);
   moveto(-75,-90);
   outtext("Size");
   moveto(-75,-70);
   outtext("Color");
   moveto(-75,-50);
   outtext("Level");
}

void drawsize()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(-85,-100,-5,-35);
   setcolor(BLACK);
   rectangle(-82,-97,-8,-38);
   setfillstyle(SOLID_FILL,GREEN);
   bar(-77,-52,-13,-40);
   setcolor(RED);
   moveto(-75,-90);
   outtext("Size");
   moveto(-75,-70);
   outtext("Color");
   moveto(-75,-50);
   outtext("Level");
}

void drawhelp()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(-170,-120,639,-100);
   setfillstyle(SOLID_FILL,GREEN);
   bar(10,-120,50,-100);
   setcolor(RED);
   moveto(-155,-115);
   outtext("Game");
   moveto(-80,-115);
   outtext("Options");
   moveto(15,-115);
   outtext("Help");
}

void drawhowtoplay()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(10,-100,125,-55);
   setcolor(BLACK);
   rectangle(13,-97,122,-57);
   setfillstyle(SOLID_FILL,GREEN);
   bar(18,-92,117,-80);
   setcolor(RED);
   moveto(20,-90);
   outtext("Introduction");
   moveto(20,-70);
   outtext("    Keys    ");
}

void drawshortcutkey()
{
   setfillstyle(SOLID_FILL,BLUE);
   bar(10,-100,125,-55);
   setcolor(BLACK);
   rectangle(13,-97,122,-57);
   setfillstyle(SOLID_FILL,GREEN);
   bar(18,-72,117,-60);
   setcolor(RED);
   moveto(20,-90);
   outtext("Introduction");
   moveto(20,-70);
   outtext("    Keys    ");
}

void clearmain()
{
   setfillstyle(SOLID_FILL,BLACK);
   bar(-170,-120,639,-100);
}

void clearsubset()
{
   setfillstyle(SOLID_FILL,BLACK);
   bar(-170,-100,639,-10);
}


void main(){
  int i=1;
  int j=3;
  int k;
  int driver,mode;
  static int o=1;

  driver=DETECT;
   mode=0;
   initgraph(&driver,&mode,"..\\bgi");
 if(o<=1){
   newpicture();}
  o++;
   k=menu(i,j);

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


int menu(int a, int c)
{
   int driver,mode;
   int setview_sx = 170,setview_sy = 120,setview_ex,setview_ey;
   int key1,key2;
   int h[8][8];
   int b[8][8];
   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<=7;x++){
	          for(y=0;y<=7;y++){
	           b[x][y]=0;   }  }
            put(b,3);  }

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

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

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

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

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

                fclose(fp);
                put(h,c);
           }
      if(cursory < -40 && cursory > -60)
        {save();
        code=specialkey();
        main();}
      if(cursory < -20 && cursory > -40)
         exit(0);
   }
   if(cursorx < -5 && cursorx > -80){
      if(cursory < -80 && cursory > -100)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产亚洲aⅴ| 亚洲男人的天堂一区二区| 日本va欧美va瓶| 欧美熟乱第一页| 亚洲你懂的在线视频| 在线亚洲人成电影网站色www| 日韩一区日韩二区| 欧美性感一类影片在线播放| 亚洲大尺度视频在线观看| 7777精品伊人久久久大香线蕉的 | 91福利国产成人精品照片| 亚洲天堂2016| 欧美日韩在线一区二区| 天天综合网 天天综合色| 日韩一级欧美一级| 成人免费高清在线| 亚洲综合激情另类小说区| 欧美性大战久久久久久久| 日本一道高清亚洲日美韩| 精品国内片67194| jlzzjlzz亚洲女人18| 性做久久久久久久久| 91精品国产综合久久香蕉的特点| 精品一区二区在线播放| 欧美国产丝袜视频| 日本韩国欧美国产| 精品中文字幕一区二区小辣椒| 日本一区二区三区高清不卡| 在线欧美日韩国产| 久久不见久久见中文字幕免费| 日韩欧美国产一区二区三区| 国产精品1区二区.| 亚洲国产中文字幕在线视频综合| 欧美r级在线观看| 91丝袜美腿高跟国产极品老师 | 亚洲国产精品激情在线观看| 91传媒视频在线播放| 麻豆一区二区99久久久久| 亚洲欧美一区二区久久| 日韩欧美国产小视频| 白白色亚洲国产精品| 石原莉奈在线亚洲三区| 日本一区二区三区dvd视频在线| 欧日韩精品视频| 国产一区二区三区免费看| 一区二区三区美女| 国产欧美日韩三级| 日韩视频一区在线观看| 在线欧美日韩国产| 99国产一区二区三精品乱码| 九九**精品视频免费播放| 亚洲电影一级黄| 国产精品美女久久久久av爽李琼| 欧美一区二区成人| 欧美性受xxxx黑人xyx性爽| 成人av电影在线观看| 极品美女销魂一区二区三区免费| 亚洲国产视频一区| 成人免费小视频| 久久精品欧美一区二区三区不卡 | 日韩欧美一二三| 欧日韩精品视频| 91香蕉国产在线观看软件| 国产大陆亚洲精品国产| 久久精品国产一区二区三区免费看| 亚洲综合偷拍欧美一区色| 亚洲婷婷国产精品电影人久久| 国产色一区二区| 日韩欧美一区二区在线视频| 欧美日韩一区二区三区高清| 一本色道亚洲精品aⅴ| 成人午夜视频免费看| 国产999精品久久久久久绿帽| 麻豆国产精品777777在线| 午夜国产精品一区| 午夜亚洲福利老司机| 亚洲一区二区三区四区不卡| 1区2区3区欧美| 中文字幕一区二| 成人免费一区二区三区在线观看| 中文字幕一区二区在线观看| 国产精品传媒入口麻豆| 国产精品久久久久久久第一福利| 国产日韩欧美麻豆| 中文无字幕一区二区三区| 国产丝袜欧美中文另类| 国产精品卡一卡二| 亚洲色图丝袜美腿| 亚洲在线观看免费| 日韩精品久久理论片| 视频一区中文字幕国产| 人妖欧美一区二区| 狠狠色丁香久久婷婷综合_中| 国内精品不卡在线| 国产精品一区久久久久| 成人sese在线| 色猫猫国产区一区二在线视频| 色婷婷综合久久久久中文一区二区| 色婷婷精品大视频在线蜜桃视频| 欧美性受极品xxxx喷水| 欧美一区二区在线免费播放| 精品福利一区二区三区免费视频| 2023国产精华国产精品| 亚洲国产精品传媒在线观看| 亚洲天堂精品在线观看| 五月激情综合婷婷| 国产精品一区在线| 色av综合在线| 欧美mv日韩mv国产| 日韩一区日韩二区| 免费在线观看成人| 成人免费毛片a| 欧美视频在线观看一区| 欧美变态tickle挠乳网站| 欧美激情综合在线| 欧美一个色资源| 欧美一区2区视频在线观看| 色一区在线观看| 欧美午夜一区二区| 日韩免费性生活视频播放| 欧美激情中文字幕| 一区二区在线观看视频在线观看| 日本在线观看不卡视频| 成人激情免费电影网址| 欧美午夜视频网站| 国产女主播在线一区二区| 亚洲综合网站在线观看| 国产精品456露脸| 欧美偷拍一区二区| 久久久精品天堂| 图片区小说区国产精品视频| 国产精品一二三| 欧美精品免费视频| 国产欧美日韩在线视频| 人妖欧美一区二区| 91久久线看在观草草青青 | 成人高清视频免费观看| 555夜色666亚洲国产免| 国产精品久久久久aaaa| 欧美aⅴ一区二区三区视频| 91免费国产在线| 久久免费看少妇高潮| 日韩国产成人精品| 色综合久久66| 国产欧美一区二区三区网站 | 自拍偷拍国产精品| 久久国内精品自在自线400部| 欧美日韩一区小说| 亚洲免费av高清| av高清久久久| 国产农村妇女精品| 国产一区激情在线| 日韩视频123| 图片区小说区国产精品视频| 99re这里都是精品| 欧美经典一区二区| 狠狠色综合色综合网络| 日韩一区二区三区电影在线观看| 亚洲男人的天堂一区二区| 从欧美一区二区三区| 久久嫩草精品久久久久| 美女视频网站黄色亚洲| 欧美男人的天堂一二区| 亚洲福利视频导航| 色综合久久99| 夜夜夜精品看看| 色婷婷av一区二区| 亚洲精品伦理在线| 色综合久久88色综合天天免费| 中文字幕一区二区三区四区| 成人精品gif动图一区| 国产精品污网站| av在线综合网| 自拍偷拍亚洲激情| 日本乱码高清不卡字幕| 亚洲激情网站免费观看| 色老汉一区二区三区| 一区二区三区在线视频免费| 91久久精品一区二区| 亚洲一区二区三区在线看| 欧美日韩卡一卡二| 日韩av一区二| 精品国产乱码久久久久久免费 | 一区二区三区免费在线观看| 色综合天天狠狠| 亚洲一二三四区不卡| 欧美日韩国产综合草草| 秋霞午夜鲁丝一区二区老狼| 精品成人免费观看| 国产成人夜色高潮福利影视| 欧美国产国产综合| 99久久婷婷国产综合精品电影| 亚洲精品免费看| 欧美精品久久久久久久久老牛影院| 日本aⅴ精品一区二区三区| 久久久久久亚洲综合| 99久久精品情趣| 五月天激情综合| 久久先锋资源网| 色婷婷精品大在线视频|