Git Product home page Git Product logo

project-rockscissorspaper's Introduction

project-rockscissorspaper

Overview

두 명의 가상의 유저가 가위바위보 게임을 할 경우 승자와 패자를 알려주는 프로그램

Step1

난수를 생성하는 컴퓨터와 일정한 정숫값을 입력하는 유저의 정숫값을 비교해서 홀수, 짝수 여부에 따라 승자를 가르는 단계

Step2

랜덤으로 값을 생성하는 컴퓨터와 가위, 바위, 보 중 일정한 값을 입력하는 유저의 값을 비교해서 승자를 가르는 단계

Step3

게임을 여러 번 반복해서 각 게임에서의 승률과 게임 전체에서의 승률을 구하는 단계

Step4

게임머니라는 개념을 도입해 승자에게 베팅한 게임머니를 할당하고 0원이 되면 게임이 끝나는 단계

Step5

유저가 처음 게임머니를 입력할 수 있도록 설정하고 매 게임마다 판돈을 걸 수 있는 단계

Step6

파일 형태로 저장된 이전 게임 정보가 있을 경우 이어하기 기능 및 게임 종료 시 저장 기능을 추가하는 단계

project-rockscissorspaper's People

Contributors

rere950303 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.