Giter Club home page Giter Club logo

go_numer0n's Introduction

go言語の練習 : コンピュータと対戦するヌメロン

$ go version
go version go1.15.5 darwin/amd64

$ go run numer0n.go
CPUと対戦するヌメロンです.
名前を入力してください >>hk
hkさんこんちわ!
次に自分の数字を3桁で入力してください(半角数字) >>291
あなたが選んだ数字
ーーーーーーーーーーーーーーー
1桁目 : 2 
2桁目 : 9 
3桁目 : 1 
ーーーーーーーーーーーーーーー
game Start!!!
先攻はあなたです
--------------------あなたのターン--------------------
相手の3桁の数字を予想してください
012
eat : 1, bite : 0
----------------------CPUのターン----------------------
相手の3桁の数字を予想してください
512
eat : 0, bite : 2
--------------------あなたのターン--------------------
相手の3桁の数字を予想してください
345
eat : 1, bite : 0
----------------------CPUのターン----------------------
相手の3桁の数字を予想してください
896
eat : 1, bite : 0
--------------------あなたのターン--------------------
相手の3桁の数字を予想してください
678
eat : 0, bite : 0
----------------------CPUのターン----------------------
相手の3桁の数字を予想してください
753
eat : 0, bite : 0
--------------------あなたのターン--------------------
相手の3桁の数字を予想してください
049
eat : 0, bite : 1
----------------------CPUのターン----------------------
相手の3桁の数字を予想してください
658
eat : 0, bite : 0
--------------------あなたのターン--------------------
相手の3桁の数字を予想してください
392
おめでとうございます! あなたの勝ちです!!!

go_numer0n's People

Contributors

hi1rayama avatar

Watchers

James Cloos avatar  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.