Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kadai3-1: lfcd85 #28

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Kadai3-1: lfcd85 #28

wants to merge 14 commits into from

Conversation

lfcd85
Copy link

@lfcd85 lfcd85 commented Jun 18, 2019

課題3-1 タイピングゲームを作ろう

Go言語の標準ライブラリのパッケージ名をタイピングして覚えるゲームです。

  • 標準出力に英単語を出す(出すものは自由)
  • 標準入力から1行受け取る
  • 制限時間内に何問解けたか表示する

補足

  • エラー処理に hashicorp/go-multierror を使用してみました
  • export_test.go による非公開機能のテストを実装してみました
  • 入出力部分のテストは、特に dojo3hioki-daichi さんの実装を参考にしています

実行例

$ bin/typinggame
Let's type the standard package names! ( Time limit: 30s )
> net/http
net/http
net/http ... OK! current score: 1
> crypto/x509/pkix
crypto/x509/pkix
crypto/x509/pkix ... OK! current score: 2
> debug
d 
d ... NG: try again.
> debug
30s has passed: you correctly typed 2 package(s)!

@lfcd85 lfcd85 requested review from tenntenn and a team June 18, 2019 00:11
@lfcd85 lfcd85 self-assigned this Jun 18, 2019
@lfcd85 lfcd85 changed the title Kadai3 1 lfcd85 Kadai3-1: lfcd85 Jun 18, 2019
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.

1 participant