Skip to content

Commit 01aef3e

Browse files
committed
Add README
1 parent fc9963e commit 01aef3e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

kadai3-1/lfcd85/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Typing Game
2+
3+
An implementation for the typing game, kadai3-1 of Gopherdojo #5. The standard library packages for Golang are the words for typing.
4+
5+
Gopher道場 #5 課題3-1 `タイピングゲームを作ろう` の実装です。Go言語の標準ライブラリのパッケージ名がタイピング対象の単語になっています。
6+
7+
## Installation
8+
9+
```bash
10+
$ make build
11+
```
12+
13+
## Usage
14+
15+
The game starts after executing the command below. Let's type the shown package name. Your score will be shown after reaching to the time limit and finishing the game.
16+
17+
下記のコマンドを実行するとゲームが開始します。表示されたパッケージ名をタイプしてください。制限時間に達するとゲームが終了し、スコアが表示されます。
18+
19+
```bash
20+
$ bin/typinggame
21+
Let's type the standard package names! ( Time limit: 30s )
22+
> hash/fnv
23+
hash/fnv
24+
hash/fnv ... OK! current score: 1
25+
26+
> debug
27+
d
28+
d ... NG: try again.
29+
> debug
30+
31+
30s has passed: you correctly typed 1 package(s)!
32+
```
33+
34+
The time limit can be set by `-t` option. Default value is 30 sec.
35+
36+
制限時間は `-t` オプションで変更可能です。デフォルトは30秒です。
37+
38+
```bash
39+
$ bin/typinggame -t 10
40+
Let's type the standard package names! ( Time limit: 10s )
41+
```

0 commit comments

Comments
 (0)