2048-go
2048-go copied to clipboard
Score; Tiles; Board
- Problem: Config file appearing in random directories
- Cause: I'm on windows and os.Getenv("HOME") doesn't work
- Solution change os.Getenv to os.UserHomeDir with a fallback to the directory in which the built executable is located
- Problem: window too large for my screen
- Solution: add a flag to control the tile size
- Note: while implementing, I mistakenly chreated a flag for the number of tiles per row. I liked the idea of strange board shapes so I kept the flag after finding the solution
- Solution: add a flag to control the tile size