Skip to content

kadai 3-1 shinta - #34

Open
ShintaNakama wants to merge 3 commits into
masterfrom
kadai3-1-shinta
Open

kadai 3-1 shinta#34
ShintaNakama wants to merge 3 commits into
masterfrom
kadai3-1-shinta

Conversation

@ShintaNakama

@ShintaNakama ShintaNakama commented Sep 22, 2019

Copy link
Copy Markdown

課題3

タイピングゲームを作ろう

  • 標準出力に英単語を出す(出すものは自由)

  • 標準入力から1行受け取る

  • 制限時間内に何問解けたか表示する

  • mainと、typing.goの、どちらでFprintf()を使うべきか迷った

@ShintaNakama ShintaNakama changed the title 動く形まで kadai 3-1 shinta Sep 22, 2019
Comment thread kadai3-1/shinta/main.go

func execute(chInput <-chan string, chFinish <-chan time.Time, stdout io.Writer, t Typing) {

score := 0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ゼロ値

Comment thread kadai3-1/shinta/main.go
func inputRoutine(r io.Reader) <-chan string {
ch := make(chan string)

go func() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

タイムアウトした場合のこのゴールーチンの終了は?

Comment thread kadai3-1/shinta/main.go

go func() {
s := bufio.NewScanner(r)
for s.Scan() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

エラー処理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants