have some kind of highscores

Bug #632325 reported by Josh Brown
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snakes
Confirmed
Medium
Unassigned

Bug Description

Have a highscores table of some sort.

Tags: feature ui
Revision history for this message
Josh Brown (joshbrown) wrote :

This is quite an important feature to have, but I think it could wait until after 1.0. I'm not sure what would be the best way to implement this.

Changed in snakes-game:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Tom Bell (bushbaby2511) wrote :

As a local high-score table the best way would probably be some stored file for logging scores, prehaps using the python dictionary object to list scores to players. The downside to this would be cross platform compatibility issues (Unix vs Win32 systems) due to location of storage. An internal storage mechanism, although more complex, could solve this issue?

Revision history for this message
Josh Brown (joshbrown) wrote :

Tom, perhaps we could create a file in the local directory - this is quite straight-forward but could lead to the program and data being separated. As for the file itself, I was thinking about using a whitespace-delimited structure and simply store an entry per game with the fields:
  * Date - may be used for monthly/weekly highscores
  * Name - identify player
  * Points - pieces of food eaten
  * Board size - a bigger board makes it easier
  * Speed - we may want to add variable speed in the future

I think storing the data in the file itself is a bad idea, as that way you've got very little code/data separation.

Revision history for this message
Tom Bell (bushbaby2511) wrote :

This makes sense. As a related aside; Is the program going to be run primarily from the command-line using arguments or should a Curses `main menu` be added with access to functions like 'Start Game' 'Options' 'High Scores' etc?

Revision history for this message
Josh Brown (joshbrown) wrote :

I think a menu would be good, but the game should have certain defaults such as board size and speed to ensure that scores can be compared. Perhaps have a menu showing highscores with functions to play the game or set options, maybe we could highlight the user's highscore in some way (if they achieved one).

How about arrow controls - left and right to select, up and down to change setting? Perhaps we could show only highscores for the selected options. I'm not very good at the whole planning thing :) I'm sure we'll figure something out.

Revision history for this message
Tom Bell (bushbaby2511) wrote :

Here's a simple script I drafted to show the general idea [ Of course this would be refined later but you get what I mean! :-) ]

Josh Brown (joshbrown)
tags: added: feature
tags: added: ui
Josh Brown (joshbrown)
Changed in snakes-game:
milestone: none → 2.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.