没有程序发布栏目。有点纠结。
用if else写的 游戏,新手才学的,勿喷啊
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication66
{
class Program
{
static void Main(string[] args)
{
string shuru;
int sum = 1000;
Console.WriteLine("*********************************************");
Console.WriteLine("本游戏一共有1000元钱,1000元消耗完成则游戏结束");
Console.WriteLine("*********************************************");
Console.WriteLine("你路过一条街看见一个乞丐,在行讨不小心撞到了你,你会?");
Console.WriteLine("A、把他打一顿 B、拍拍身上的衣服,从口袋里拿出100元递给他 C、无视");
shuru = Console.ReadLine();
if (shuru == "A" || shuru == "a")
{
sum -= 200;
Console.WriteLine("乞丐还手的反咬了你一口,去医院治疗花了200块.算算只剩下{0}了", sum);
}
if (shuru == "B" || shuru == "b")
{
sum -= 100;
Console.WriteLine("乞丐对你微微一笑,表示谢意!算算只剩下{0}了", sum);
}
if (shuru == "C" || shuru == "c")
{
sum -= 300;
Console.WriteLine("边走边哼着小曲,不小心拌了一块石头,牙齿崩掉了两个,去医院花了300.算算只剩下{0}了", sum);
}
Console.ReadKey();
Console.Clear();
Console.WriteLine("快迟到了,等啊等啊,公交车怎么还没来啊,此时你不想再等了,你选择?");
Console.WriteLine("A、找个D士去公司 B、奔跑去公司吧 C、继续等");
shuru = Console.ReadLine();
if (shuru == "A" || shuru == "a")
{
sum -= 150;
Console.WriteLine("上车忘记说到达公司要多少钱了,结果被D士老板,狠狠的敲了一笔!花了150块,欲哭无泪.算算只剩下{0}了", sum);
}
if (shuru == "B" || shuru == "b")
{
sum -= 200;
Console.WriteLine("你气喘吁吁的,终于跑到公司了,结果被老板叫到办公室,因迟到一个小时扣了200块工资。算算只剩下{0},", sum);
}
if (shuru == "C" || shuru == "c")
{
sum -= 100;
Console.WriteLine("没过多久,公交车就来了,于是你不缓不急的踏上了公交车。下车后发现身上公交卡掉了,损失100块,算算只剩下{0}了", sum);
}
Console.ReadKey();
Console.Clear();
Console.WriteLine("看到一个漂亮的美眉,不知道如何去索要对方的电话号码,于是忽");
Console.WriteLine("A、叫铁哥们去索要 B、伪装成路人甲,从她身边走来走去,引起对方的注意 C、等待时机");
shuru = Console.ReadLine();
if (shuru == "A" || shuru == "a")
{
sum -= 200;
Console.WriteLine("你的铁哥们,对你眨吧眨吧眼睛,把手伸了出来,口里说道money。你咬着牙给了他200,说道:舍不得孩子套不着狼.算算只剩下{0}了", sum);
}
if (shuru == "B" || shuru == "b")
{
sum -= 150;
Console.WriteLine("买路人甲的道具,花了150块。最后人家还是没看你一眼,你蛋疼的骂道:天啊,我这种帅哥美女都不看一眼,天理何在,顿时天空一阵响雷...算算只剩下{0}", sum);
}
if (shuru == "C" || shuru == "c")
{
sum -= 400;
Console.WriteLine("等啊等啊,终于等到了时机....不久之后约会了,陪她约会逛街花了400块。算算只剩{0}", sum);
}
Console.ReadKey();
Console.Clear();
Console.WriteLine("终于国庆了,你屁颠屁颠的策划着国庆该如何过");
Console.WriteLine("A、去华山论剑 B、在家休息,上网,玩游戏 C、逛长城");
shuru = Console.ReadLine();
if (shuru == "A" || shuru == "a")
{
sum -= 600;
Console.WriteLine("花了100坐车去华山。结果人太多,想退票,被保安给打了,还被痛了一刀。于是住院花了500。");
}
if (shuru == "B" || shuru == "b")
{
sum -= 300;
Console.WriteLine("在家上上网,玩玩游戏,闲的蛋疼,买了一堆零食花了300,就这样过完了国庆。算算只剩下{0}", sum);
}
if (shuru == "C" || shuru == "c")
{
sum -= 100;
Console.WriteLine("逛长城的人真多,人山人海,你挤我啊,我挤你啊,你悠哉游哉的边走边吃着一些人的豆腐,心里还乐滋滋的,结果被一个女的揪住了,敲诈了一笔,损失了100块{0}", sum);
}
Console.ReadKey();
Console.Clear();
if (0 >= sum)
{
Console.WriteLine("游戏结束,再接再励!");
}
else
{
Console.WriteLine("你上厕所的时候,你的朋友打电话向你借钱,你会说?");
Console.WriteLine("A、借你妹,我都快没钱吃饭了 B、借多少? C、手机信号不好...你说什么...什么...");
shuru = Console.ReadLine();
if (shuru == "A" || shuru == "a")
{
sum -= 300;
Console.WriteLine("边说边骂,口水唾沫横飞,一不小心,扑通一声,手机掉进马桶里了,顿时你楞了一会儿....第二天修手机花了200,算算只剩下{0}了", sum);
}
if (shuru == "B" || shuru == "b")
{
sum -= 200;
Console.WriteLine("你朋友狮子大开口,向你借500,在你哭穷的情况下,无奈的借了他200块。算算只剩下{0}了", sum);
}
if (shuru == "C" || shuru == "c")
{
sum -= 100;
Console.WriteLine("被你朋友这几天电话借钱骚扰了一番,花了100块买安眠药。算算只剩下{0}", sum);
}
if (0 >= sum)
{
Console.WriteLine("游戏结束,再接再励!");
}
{
Console.WriteLine("运气不错,通关!奖励飞吻《》");
}
}
Console.ReadKey();
}
}
}
|
|