Skip to content

Commit

Permalink
chore: remove commented code, update todo list
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed May 10, 2024
1 parent 14c6cdf commit cd8b334
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ python3 snake.py --color-snake blue --color-food red

## Todo

- [X] Make horizontal and vertical speeds equal
- [ ] Make horizontal and vertical speeds equal (see commit history for details)
- [ ] Fix pausing (save state and unpause at same state)
- [ ] Add support for best score saving/loading (tentative)
- [ ] Remove magic numbers for curses color pairs
5 changes: 0 additions & 5 deletions snake.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,15 +462,10 @@ def get_args() -> Namespace:
def main(stdscr: curses.window) -> str:
"""Entry point for snake game"""
args = get_args()
# stdscr = curses.initscr()
# curses.start_color()
# curses.cbreak()
curses.curs_set(0)
curses.use_default_colors()
# curses.noecho()
stdscr.nodelay(True)
stdscr.timeout(1000 // args.speed)
# stdscr.keypad(True)

colors = {
"black": curses.COLOR_BLACK,
Expand Down

0 comments on commit cd8b334

Please sign in to comment.