游戏
Kochakin
一听就会,一写就废;暴力超时,分治不会……抄的全都对。
展开
-
【C++五子棋】简陋的入门小游戏
网上做这个的dalao已经很多了,蒟蒻的这个目前尚有缺陷——在落子的时候会刷新两三次,看着有点卡顿,但可以接受;游戏一般算法不难,主要是实现,这里不再对原理进行解释;原创 2022-12-22 13:35:56 · 147 阅读 · 0 评论 -
骗赞小程序(仅供恶搞)
开始有一个弹窗,上面让用户自行选择是否进行关注,是则跳到博客主页,否则进行秒后关机(为常数,可以随意设置),然后在让用户进行输入,直到用户输入是,此时终止关机程序并跳到博客主页原创 2022-11-18 12:14:19 · 377 阅读 · 0 评论 -
c++ 小游戏 NO 9 最后主函数
下方有惊喜:int main(){ startv:system("cls"); cout<<"欢迎来到hyx游戏中心!\n"; cout<<"1.玩贪吃蛇\n"; cout<<"2.玩狒狒大战\n"; cout<<"3.晃瞎你的狗眼\n"; cout<<"4.玩速算王者\n"; cout<<"5.玩欢乐赌场\n"; cout<<"6.玩忍三\n"; cout<<"7.玩打怪小游戏(死了才原创 2021-07-25 13:48:15 · 564 阅读 · 0 评论 -
c++ 小游戏 NO 8 地图游戏(有2个逆天bug,难得修护)
下一张有惊喜:string grass[1] = { " " };string soil[30];string bullet[1] = { "▂" };int SoilHieght[9] = { 2,2,2,10,20,7,7,7,7 };Sprite原创 2021-07-25 13:44:04 · 216 阅读 · 1 评论 -
c++ 小游戏 NO 7 打怪游戏(无聊)
最后一章有惊喜:int dadaj() { string c[10],dr[10],zb[20],daojv[11]; cout<<"你好,欢迎"<<endl; int a=-1,h,x=0,dj=1,jy=0,p=150,s=0,ss=0,dh1=0,dg1=0,ddj=0,nd=1,cf=0,cd1=0,cd2=0,xl=0,drcf1=0,tx=-1; //b 地点 //a 动作 //h 血量 //x 技能 //hh 回合 //d1 怪物序号 //dj原创 2021-07-25 13:31:45 · 522 阅读 · 0 评论 -
c++ 小游戏 NO6 跑酷游戏
最后一章有惊喜:int ti(float a) { return ((int)(a*10+5))/10;}void Setpos(float x,float y) { COORD pos; pos.X=ti(y*4)/2; pos.Y=ti(x); SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);}void Color(int a) { if(a==0) SetConsoleTextAttribute(G.原创 2021-07-25 13:20:29 · 2447 阅读 · 9 评论 -
c++ 小游戏 猜数游戏
最后一张有惊喜:struct player{ string name; int money; bool flag;};player p1,p2,p3,p4;int suiji(int n){ return rand()%n;}int lunpan(player m){ int zhu,a,b,c,fen=0,a1,b1,c1; cout<<m.name<<"下注(元):"<<endl; cin>>zhu; m.money.原创 2021-07-25 13:15:17 · 131 阅读 · 0 评论 -
c++ 小游戏 NO1 初始定义
NO 1 源代码#include<bits/stdc++.h>#include <cstdio>#include <conio.h>#include <cstdlib>#include <cstring>#include <fstream>#include <iostream>#include <windows.h>#include <algorithm>#include&..原创 2021-07-22 16:40:02 · 438 阅读 · 0 评论 -
c++ 小游戏 NO 2 贪吃蛇
NO 2void Ending(){ printf("E键退出,R键重来\n"); char ch=getch(); while(ch!='E'&&ch!='e'&&ch!='R'&&ch!='r') ch=getch(); if(ch=='E'||ch=='e') return; el...原创 2021-07-22 16:46:30 · 95 阅读 · 1 评论 -
c++ 小游戏 NO 3 XX大战
NO 3(最后一章时有彩蛋务必观看)原创 2021-07-22 16:51:26 · 164 阅读 · 1 评论 -
c++ 小游戏 NO 4 eye
int eye(){ sb:system("cls"); cout<<"设置强度(建议200-2000,最好是1000)"; int a; cin>>a; system("cls"); cout<<"\n\n\n\n\n\n\n\n\n\n\n 准备好了吗?"; Sleep(1000); system("cls"); cout<<"\n\n\n\n\n\n\n\n\n\n\n .原创 2021-07-22 17:44:35 · 86 阅读 · 2 评论 -
c++游戏 NO 5 速算游戏
先上源代码(最后一张有神秘物品):bool jisuan(){ int min=1,max=9; bool flag=true; int a,b,c,d; unsigned long long seed; max=99; seed=(unsigned)time(NULL); a=suiji(min,max,seed); b=(suiji(min,max,seed+17)*suiji(min,max,seed+7)*suiji(min,max,seed-1))%100; c=suij原创 2021-07-25 13:09:18 · 243 阅读 · 1 评论