Giter VIP home page Giter VIP logo

gawibawibo-'s Introduction

gawibawibo-

gawibawibo!!

게임에서 주먹은 0 , 가위는 1 , 보는 2 를 의미한다. my_hand는 내가 입력한 숫자이고, com_hand 는 컴퓨터에서 랜덤으로 나온 숫자다.(0,1,2) a 는 내가 낸 주먹/가위/보를 의미하는 수에서 컴퓨터가 낸 수를 빼는 것이다 같은 수는 같은 손 모양을 의미한다. 같은 수는 비긴다.(a == 0) 여기서 a>0이면 이긴다. 바위는 가위에게 이기고 (1 - 0 = 1) 보는 바위에게 이기지만 (2 - 1 = 1) 보는 가위에게 지므로 ( 2 - 0 = 2 ) my_hand == 2 and com_hand == 0일 경우에는 진다. a < 0 일 경우 패한다. 매번 승패 여부가 뜬다. 10번 반복하면 내가 몇 번 이겼고 졌고 비겼는지 출력한다.

gawibawibo-'s People

Contributors

jssngg avatar

Watchers

James Cloos avatar

Forkers

cheongrich

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.