Skip to content

Commit

Permalink
fix all linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Mar 20, 2022
1 parent 739d9fa commit c604d9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/terminalgame/game/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type TTG struct {
*game.Game
}

// NewTTG creates a ne TTG.
// NewTTG creates a new TTG.
func NewTTG(w, h, chainLen byte, player1Type, player2Type player.Type) *TTG {
result := &TTG{
reader: bufio.NewReader(os.Stdin),
Expand All @@ -35,6 +35,7 @@ func NewTTG(w, h, chainLen byte, player1Type, player2Type player.Type) *TTG {
// Run runs the game.
func (t *TTG) Run() {
endGame := make(chan bool, 1)

t.Game.Result(func(l letter.Letter) {
// handle game end
switch l {
Expand Down

0 comments on commit c604d9c

Please sign in to comment.