Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determine how to score levels #13

Closed
alicerunsonfedora opened this issue Sep 1, 2020 · 1 comment
Closed

Determine how to score levels #13

alicerunsonfedora opened this issue Sep 1, 2020 · 1 comment
Assignees
Labels
task Something needs to be done but isn't a bug or feature request
Milestone

Comments

@alicerunsonfedora
Copy link
Owner

Currently, there is no implementation of how a score is calculated for a level. This can be problematic since Game Center achievements and leaderboards may require a better system, and the AI agents will definitely need it. A scoring system should be in place to help facilitate this.

Notes to keep in mind:

  • The current codebase doesn't allow direct movement (i.e., "move in x direction"); rather, it uses a physics based system where the sprite is given an impulse force and moves.
  • There may be different ways to score a level, including times, efficient paths, costume usage, etc.
  • Game Center challenges, achievements, and levels may not necessarily need to use the same scoring system as the agents do.
@alicerunsonfedora alicerunsonfedora added the task Something needs to be done but isn't a bug or feature request label Sep 1, 2020
@alicerunsonfedora alicerunsonfedora added this to the Milestone 1 milestone Sep 1, 2020
@alicerunsonfedora alicerunsonfedora self-assigned this Sep 1, 2020
@alicerunsonfedora alicerunsonfedora added this to To do in Project Backlog via automation Sep 1, 2020
@alicerunsonfedora alicerunsonfedora moved this from To do to In progress in Project Backlog Sep 2, 2020
@alicerunsonfedora
Copy link
Owner Author

I propose that there are multiple scores that can be calculated for a given level:

  • The self-status scores are a collected set of scores that track information such as time to completion and costume usage scores. These scores can be used for Game Center achievements where players can submit scores to Game Center leaderboards and achievements.
  • The game state scores are a collected set of scores that will track the state of the game on multiple levels. These scores are used specifically for AI agents. These can include the following:
    • Position away from a particular item. Due to the current implementation of movement, telling the agent to just "move left" isn't enough. Position detection should be relative to the matrix data when initializing from the tile map, where the agent should move in a particular direction until the player is within the range of the target.
    • Number of unactivated inputs that link to the exit.
    • Living cost (time).

Project Backlog automation moved this from In progress to Done Sep 2, 2020
@alicerunsonfedora alicerunsonfedora moved this from Done to Shipped (Milestone 1) in Project Backlog Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Something needs to be done but isn't a bug or feature request
Projects
No open projects
Project Backlog
  
Shipped (Milestone 1)
Development

No branches or pull requests

1 participant