Git Product home page Git Product logo

tower-of-go's Introduction

A Tower of Go

CircleCI

A tiny maze game that runs on the terminal.

๐Ÿ’โ€โ™€๏ธ Demo

A Tower of Go Demo

๐Ÿš€ Installation

// Golang < 1.16
go get github.com/kjirou/tower-of-go
go install github.com/kjirou/tower-of-go

// Golang >= 1.16
go install github.com/kjirou/tower-of-go@latest

Then launch the application.

tower-of-go

๐Ÿ”ง Development

Softwares that needs to be locally installed

tower-of-go's People

Contributors

kjirou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tower-of-go's Issues

TODO

  • Sleep ใฎ้–“้š”ใŒไธ€ๅฎšใซ่ฟ‘ใฅใใ‚ˆใ†ใซๆฏŽใƒซใƒผใƒ—่จˆ็ฎ—ใ™ใ‚‹ใ€‚
  • pkg/errors ใ‚’ไฝฟใ†ใ€‚
  • CircleCI ใง่‡ชๅ‹•ใƒ†ใ‚นใƒˆใ‚’ๅฎŸ่กŒใ™ใ‚‹ใ€‚
  • gotests ใ‚’ไฝฟใ„ใ€ๆ—ขๅญ˜ใฎใƒ†ใ‚นใƒˆใ‚ณใƒผใƒ‰ใ‚‚ใใฎๆ…ฃไพ‹ใซๅˆใ‚ใ›ใ‚‹ใ€‚

Questions about Golang

  • struct ๅฎฃ่จ€ใฎใƒ•ใ‚ฃใƒผใƒซใƒ‰ใฎๅž‹ใ‚’ไป–ใ‹ใ‚‰ๅ‚็…งใ—ใŸใ„ใ€‚
    • ไพ‹ใˆใฐใ€type Foo struct {X int} ใจใ„ใ†ใจใใซใ€ไป–ใง func aaa(x Foo.X) ใฎใ‚ˆใ†ใซๅ‚็…งใ—ใŸใ„ใ€‚
    • ๐Ÿ‘‰ ใชใ•ใใ†ใ€‚ใƒ—ใƒชใƒŸใƒ†ใ‚ฃใƒ–ใชๅž‹ใชใ‚‰ใใฃใกใงๆ›ธใ„ใฆใจใ„ใ†ๆธฉๅบฆๆ„Ÿใฎใ‚ˆใ†ใ€‚่ค‡้›‘ใชๅž‹ใชใ‚‰ใ€ใƒฉใ‚คใƒ–ใƒฉใƒชๅดใ‹ใ‚‰ๅ…ฌ้–‹ใ—ใฆใ‚‚ใ‚‰ใ†ใ€‚
  • ใƒŸใƒ‹ใƒžใƒ ใชใ‚ณใƒžใƒณใƒ‰ใƒฉใ‚คใƒณๅผ•ๆ•ฐใฎใƒ‘ใƒผใ‚ตใƒผใŒๆฌฒใ—ใ„ใ€‚
    • ใ‚ทใ‚งใƒซใฎๅผ•ๆ•ฐใƒชใ‚นใƒˆใ‚’ -a ใ‚„ --aaa ใ‚„ -a=val ใ‚’่ช่ญ˜ใ—ใฆ็ตๆžœใ‚’ๆง‹้€ ไฝ“ใง่ฟ”ใ—ใฆใใ‚Œใ‚‹ใพใงใงใ„ใ„ใ€‚
    • node ใฎ minimist ็š„ใชใ‚„ใคใ€‚
    • ๐Ÿ‘‰ ๆจ™ๆบ–ใซ flag ใƒ‘ใƒƒใ‚ฑใƒผใ‚ธใŒใ‚ใฃใŸใ€‚
  • struct ใ‚’ private ใซใ™ใ‚‹ใŸใ‚ใซๅ…ˆ้ ญๅฐๆ–‡ๅญ—ใงๅฎฃ่จ€ใ—ใŸใจใใซใ€ใƒฌใ‚ทใƒผใƒๅค‰ๆ•ฐใฎๅ‘ฝๅใฏใฉใ†ใ™ใ‚‹ใฎใŒไธ€่ˆฌ็š„ใชใฎใ‹ใ€‚
    • func (foo *Foo) getX() int {} ใ‚’ func (foo *foo) getX() int {} ใซใ—ใŸใจใใซใ€struct ใฎๅฎฃ่จ€ๅใจใƒฌใ‚ทใƒผใƒๅค‰ๆ•ฐๅใŒๅŒใ˜ใซใชใ‚‹ใŒใ€ใใ‚Œใงใ‚‚ใ„ใ„ใฎใ‹ใ€‚
    • ๐Ÿ‘‰ ๅŒใ˜ๆ–‡ๅญ—ๅˆ—ใงใ‚‚ๆ–‡ๆณ•็š„ใซใฏ้•ใ„ใฏๆ˜Ž็ขบใชใ‚“ใ ใ‹ใ‚‰ใ€ๅŒใ˜ใงใ„ใ„ใ‚“ใงใฏใจใ„ใ†ๆ„่ฆ‹ใ‚’ใ‚‚ใ‚‰ใฃใŸใ€‚ๆญฃ่ซ–ใฃใฝใ„ใ€‚
  • ่ค‡ๆ•ฐใฎๅŒใ˜ๆˆปใ‚Šๅ€คใฎใ‚ปใƒƒใƒˆใ‚’ๆŒใค้–ขๆ•ฐใŒใ‚ใ‚‹ใจใ—ใฆใ€ใใฎๆˆปใ‚Šๅ€คใฎใ‚ปใƒƒใƒˆใฎๅž‹ใ‚’ๅ…ฑ้€šๅŒ–ใ—ใŸใ„ใ€‚
    • ๆœฌใ‚ขใƒ—ใƒชใ ใจ reducers ใฎๅ„้–ขๆ•ฐใฎๆˆปใ‚Šๅ€คใƒชใ‚นใƒˆใซๅฏพใ—ใฆๅŒใ˜ๅž‹ใ‚’ไป˜ไธŽใ—ใŸใ„ใ€‚
  • 2 ่ฆ็ด ใ‚’ๆŒใค slice ใ‚’ๅค‰ๆ•ฐใธๅˆ†ๅ‰ฒไปฃๅ…ฅใ—ใŸใ„ใ€‚x, y := aSlice ใฟใŸใ„ใชใฎใ€‚
    • ้–ขๆ•ฐใฎๆˆปใ‚Šๅ€คใ ใจๅˆ†ๅ‰ฒไปฃๅ…ฅ็š„ใชใฎใŒใงใใ‚‹ใ‘ใฉใ€ใ‚ใ‚Œใฏใชใ‚“ใชใ‚“ใ ใ‚ใ†๏ผŸ
  • map ใธใฎใ‚ขใ‚ฏใ‚ปใ‚นใฏ v, ok := aMap["key"] ใฎใ‚ˆใ†ใซ 2 ใค่ฟ”ใ™ใฎใซใ€aFunc(aMap["key"]) ใ“ใ†ใ„ใ†้ขจใซ 1 ใคใ ใ‘ๆˆปใ‚Šๅ€คใŒใ‚ใ‚‹ๆŒฏใ‚‹่ˆžใ„ใจใ—ใฆใ‚‚ไฝฟใˆใ‚‹ใฎใฏใชใœ๏ผŸ
  • time ใƒขใ‚ธใƒฅใƒผใƒซใฏใƒŠใƒŽ็ง’ใพใง่ฟ”ใ›ใ‚‹ใŒใ€็ฒพๅบฆใฏใฉใ“ใพใงไฟก้ ผใงใใ‚‹ใฎใ‹ใ€‚
    • ใพใŸ Node.js ใ ใจใƒŸใƒช็ง’ใพใงใ—ใ‹่ฟ”ใ›ใชใ„ใฎใ ใŒใ€ใใ“ใจใฎๅทฎใฏใชใซใ‹ใ€‚
  • ๅ†…้ƒจใง package ใ‚’่จญๅฎšใ™ใ‚‹ใซใฏใƒ‡ใ‚ฃใƒฌใ‚ฏใƒˆใƒชใ‚’ไฝœใ‚‹ๅฟ…่ฆใŒใ‚ใ‚‹ใฎใ‹ใ€‚ๅ‹˜ใงไธ€้šŽๅฑคไธŠใ’ใŸใ‚‰ใงใใชใ‹ใฃใŸใ€‚

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.