examples/2048/2048/game.go
func NewGame() (*Game, error) {
	g := &Game{
		input: NewInput(),
	}
	var err error
	g.board, err = NewBoard(boardSize)
	if err != nil {
		return nil, err
	}
	return g, nil
}
func NewGame() (*Game, error) {
	g := &Game{
		input: NewInput(),
	}
	var err error
	g.board, err = NewBoard(boardSize)
	if err != nil {
		return nil, err
	}
	return g, nil
}
func NewGame ( ) ( * Game , error ) { g := & Game { input : NewInput ( ) , } var err error g . board , err = NewBoard ( boardSize ) if err != nil { return nil , err } return g , nil }
// NewGame generates a new Game object.
NewGame generates a new Game object .