숫자 맞추기 게임(Console mode)
본 자료는 미리보기를 지원하지 않습니다.
닫기
  • 1
  • 2
  • 3
  • 4
해당 자료는 1페이지 까지만 미리보기를 제공합니다.
1페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

숫자 맞추기 게임(Console mode)에 대한 보고서 자료입니다.

목차

없음

본문내용

using System;
using System.Collections.Generic;
using System.Text;

namespace NumberGame
{
class NumberGame
{
static void Main(string[] args)
{
int chance = 0;

//,랜덤숫자 만들기
int randomNumber = Number.RandomNumber();

while(chance <= 5)
{
//게임 시작
chance = GuessNumber(randomNumber, chance);

if (chance < 6)
{
//주어진 기회 이전에 맞췄을 경우
randomNumber = CorretAnswer();

if (randomNumber == 0)
{
//게임을 다시 않할 경우
break;
}
else
{
chance = 0;
}
}

if (chance == 6)
{
//주어진 기회 동안 정답을 맞추지 못했을 경우
bool iteration = WrongAnswer(chance);

if (iteration == true)
{
randomNumber = Number.RandomNumber();
chance = 0;
Console.WriteLine();
}
}
}
}

키워드

  • 가격1,200
  • 페이지수4페이지
  • 등록일2007.06.25
  • 저작시기2007.6
  • 파일형식압축파일(zip)
  • 자료번호#416482
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니