亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美午夜在线一二页| 精品一区二区免费视频| 91偷拍与自偷拍精品| 国产精品欧美一级免费| av在线不卡观看免费观看| 国产精品美女www爽爽爽| av在线不卡观看免费观看| 亚洲天堂av一区| 欧美亚洲日本一区| 日本亚洲天堂网| 精品免费日韩av| 风流少妇一区二区| 亚洲人成网站影音先锋播放| 欧洲精品在线观看| 蜜臀精品久久久久久蜜臀| 久久众筹精品私拍模特| 国产69精品久久777的优势| 最新热久久免费视频| 欧美亚洲国产bt| 国产综合色产在线精品| 欧美高清在线精品一区| 在线亚洲免费视频| 久久99国产精品麻豆| 国产精品欧美久久久久无广告| 在线精品国精品国产尤物884a| 蜜臀va亚洲va欧美va天堂 | 欧美日本一道本| 久久电影网站中文字幕| 中文av一区二区| 在线不卡一区二区| 国产成人精品www牛牛影视| 亚洲一区二区美女| 精品国产一区二区三区av性色 | 日本三级亚洲精品| 日本一区二区三区在线观看| 在线观看视频91| 国产福利不卡视频| 日韩一区精品字幕| 成人免费在线播放视频| 在线不卡免费av| 日本道免费精品一区二区三区| 美国一区二区三区在线播放| 亚洲人精品午夜| 国产色综合久久| 欧美岛国在线观看| 在线精品视频一区二区| 成人性生交大片免费看在线播放 | 91精品啪在线观看国产60岁| 国产aⅴ综合色| 蜜臀av一级做a爰片久久| 亚洲免费大片在线观看| 国产午夜精品久久| 精品理论电影在线观看| 欧美撒尿777hd撒尿| 91女人视频在线观看| 国产大陆亚洲精品国产| 免费久久精品视频| 五月天欧美精品| 一区二区三区波多野结衣在线观看| 国产无人区一区二区三区| 欧美一区二区视频在线观看2022| 91麻豆国产香蕉久久精品| 黑人精品欧美一区二区蜜桃| 五月激情综合婷婷| 午夜精品免费在线观看| 亚洲精品免费一二三区| 国产精品的网站| 中文字幕一区二区视频| 欧美国产激情二区三区| 国产欧美一区二区精品秋霞影院| 欧美精品一区二区三区在线播放| 欧美一区二区在线播放| 欧美一区二区不卡视频| 欧美巨大另类极品videosbest| 欧美三级乱人伦电影| 欧美最猛性xxxxx直播| 日本久久一区二区| 色婷婷av一区二区三区大白胸| 91在线你懂得| 91老师国产黑色丝袜在线| 99久久99久久久精品齐齐| 99久久综合色| 日本精品裸体写真集在线观看 | 91精品1区2区| 欧美色区777第一页| 在线观看日韩电影| 色悠悠亚洲一区二区| 色婷婷久久久亚洲一区二区三区 | 日韩精品一区二区三区四区视频 | 韩国av一区二区| 国产精品综合二区| 成人午夜视频网站| 91美女片黄在线观看91美女| 色呦呦国产精品| 91.com视频| 久久精品亚洲国产奇米99| 久久久久88色偷偷免费| 中文字幕的久久| 亚洲综合久久久久| 理论电影国产精品| 国产一区激情在线| 色综合天天性综合| 欧美日本韩国一区| 久久综合国产精品| 一区二区三区欧美在线观看| 天天综合日日夜夜精品| 国产在线精品一区二区不卡了| 成人教育av在线| 欧美午夜精品久久久久久超碰| 日韩视频一区二区| 国产精品久久久久aaaa樱花| 一区二区三区欧美亚洲| 老司机免费视频一区二区| 国产suv精品一区二区883| 99久久国产综合精品麻豆| 欧美日本国产视频| 国产精品视频在线看| 亚洲国产wwwccc36天堂| 国产最新精品免费| 欧美日韩精品一区二区在线播放| 精品国产99国产精品| 最新欧美精品一区二区三区| 免费人成黄页网站在线一区二区| 成人av综合在线| 日韩一区二区三区视频在线| 亚洲天堂网中文字| 国产一区高清在线| 91麻豆精品国产自产在线| 国产精品无圣光一区二区| 天天操天天干天天综合网| 成人av电影在线播放| 日韩天堂在线观看| 亚洲高清视频在线| 成人av网址在线观看| 精品国产污污免费网站入口 | 国产精品日韩成人| 美女一区二区三区| 欧美在线一区二区| 亚洲日本在线视频观看| 精品一区二区三区在线观看国产| 一本大道久久a久久综合| 久久午夜色播影院免费高清| 亚洲国产精品综合小说图片区| 成人黄色软件下载| 国产无遮挡一区二区三区毛片日本| 日韩电影在线一区二区三区| 色综合久久中文字幕| 久久精品一区二区三区av| 日韩av中文在线观看| 欧美中文一区二区三区| √…a在线天堂一区| 成人av综合一区| 国产欧美日韩综合| 国产九色精品成人porny| 欧美日韩一区二区三区高清| 亚洲免费色视频| 99re热这里只有精品免费视频| 国产视频一区二区三区在线观看| 国内一区二区在线| 26uuu色噜噜精品一区二区| 免费人成精品欧美精品 | 国产精品乡下勾搭老头1| 欧美一区二区在线免费播放| 偷窥国产亚洲免费视频| 欧美日韩一区二区在线观看视频| 一区二区三区在线观看国产| 国产成人99久久亚洲综合精品| 欧美精品一区二区三区四区 | 日韩主播视频在线| 91精品国产综合久久国产大片| 午夜不卡av免费| 91精品久久久久久蜜臀| 午夜婷婷国产麻豆精品| 91.成人天堂一区| 久久国产综合精品| 精品国产乱码久久| 国产成人aaa| 亚洲色图视频网站| 欧洲一区在线观看| 日本视频一区二区| 精品成人免费观看| 福利一区二区在线观看| 亚洲国产精品av| 一本大道av一区二区在线播放 | 日韩精品专区在线| 韩国一区二区视频| 国产欧美日韩精品在线| av不卡免费在线观看| 亚洲亚洲精品在线观看| 4438x亚洲最大成人网| 国产在线一区二区| 亚洲情趣在线观看| 欧美久久久一区| 国产成人在线影院| 成人欧美一区二区三区| 欧美揉bbbbb揉bbbbb| 久久www免费人成看片高清| 久久婷婷国产综合国色天香 | 欧美三级乱人伦电影| 日韩成人免费电影|