Skip to main content
deleted 221 characters in body; edited title
Source Link
user1430
user1430

Tracking Players' Stats in iOS Game Is this technique for stat tracking without a Databasedatabase workable?

TLDR: Official question at the bottom.

My posts are always notoriously long, so here's me, trying to keep it brief. All of this is for an iOS game, using Xcode IDE, if it should matter to anyone:

If I wanted to create, say, a chess game, for iOS, that tracked both player moves-- (for retracing the progression of a game--and and for player stats), what would be the simplest route to take? To

To clarify "stats," here's what I want to do, conceptually: Not only track not only the moves a player has made in a particular game, but how often that player has made that move in past games. (e.g. IFor example I want to be able to track how many times a given player has opened by moving the king pawn up two squares [i.e. e4], as white,:

  • How many times a given player has opened by moving the king pawn up two squares (e4) as white, on move number one.
  • What is the percentage of time the player responds to white's e4 opening move, with moving his own king pawn to e5?
  • What percentage of time does he respond by moving his queenside bishop pawn to c5?

And so on move number one. Also, what is the percentage of time the player responds to white's e4 opening move, with moving his own king pawn to e5? What percentage of time does he respond by moving his queenside bishop pawn to c5? IfIf it's not clear, the stat tracking system should also be able to report how many times this player, as black, move his queen to h1, on move number 30.)

I'm using Parse.com for my back-end as a server (BaaS) service. So, here's the ultimate question: WriteIf I were to create a class that writes strings that identify move number, player color, moved piece, algebraic notation of the square (e.g. "d8") to a file, locally in the file system. Save the file to Parse. Delete temporary file from file system. Upon opening the same game in my tableview (a la a "With Friends" game), download this file from Parse, parse through it and retrieve all stats/history, assign all relevant values to variables. Is

  • writes strings that identify move number, player color, moved piece, algebraic notation of the square (e.g. "d8") to a file, locally in the file system
  • saves the file to Parse, and deletes the temporary file from file system
  • upon opening the same game in my tableview (a la a "With Friends" game), download this file from Parse, parse through it and retrieve all stats/history, assign all relevant values to variables

Is this plan viable, or is there an easier way?

Tracking Players' Stats in iOS Game without a Database

TLDR: Official question at the bottom.

My posts are always notoriously long, so here's me, trying to keep it brief. All of this is for an iOS game, using Xcode IDE, if it should matter to anyone:

If I wanted to create, say, a chess game that tracked both player moves--for retracing the progression of a game--and for player stats, what would be the simplest route to take? To clarify "stats," here's what I want to do, conceptually: Not only track the moves a player has made in a particular game, but how often that player has made that move in past games. (e.g. I want to be able to track how many times a given player has opened by moving the king pawn up two squares [i.e. e4], as white, on move number one. Also, what is the percentage of time the player responds to white's e4 opening move, with moving his own king pawn to e5? What percentage of time does he respond by moving his queenside bishop pawn to c5? If it's not clear, the stat tracking system should also be able to report how many times this player, as black, move his queen to h1, on move number 30.)

I'm using Parse.com for my back-end as a server (BaaS) service. So, here's the ultimate question: Write a class that writes strings that identify move number, player color, moved piece, algebraic notation of the square (e.g. "d8") to a file, locally in the file system. Save the file to Parse. Delete temporary file from file system. Upon opening the same game in my tableview (a la a "With Friends" game), download this file from Parse, parse through it and retrieve all stats/history, assign all relevant values to variables. Is this plan viable, or is there an easier way?

Is this technique for stat tracking without a database workable?

If I wanted to create a chess game, for iOS, that tracked both player moves (for retracing the progression of a game and for player stats), what would be the simplest route to take?

To clarify, I want to track not only the moves a player has made in a particular game, but how often that player has made that move in past games. For example I want to be able to track:

  • How many times a given player has opened by moving the king pawn up two squares (e4) as white, on move number one.
  • What is the percentage of time the player responds to white's e4 opening move, with moving his own king pawn to e5?
  • What percentage of time does he respond by moving his queenside bishop pawn to c5?

And so on. If it's not clear, the stat tracking system should also be able to report how many times this player, as black, move his queen to h1, on move number 30.

I'm using Parse.com for my back-end as a server (BaaS) service. If I were to create a class that

  • writes strings that identify move number, player color, moved piece, algebraic notation of the square (e.g. "d8") to a file, locally in the file system
  • saves the file to Parse, and deletes the temporary file from file system
  • upon opening the same game in my tableview (a la a "With Friends" game), download this file from Parse, parse through it and retrieve all stats/history, assign all relevant values to variables

Is this plan viable, or is there an easier way?

Source Link

Tracking Players' Stats in iOS Game without a Database

TLDR: Official question at the bottom.

My posts are always notoriously long, so here's me, trying to keep it brief. All of this is for an iOS game, using Xcode IDE, if it should matter to anyone:

If I wanted to create, say, a chess game that tracked both player moves--for retracing the progression of a game--and for player stats, what would be the simplest route to take? To clarify "stats," here's what I want to do, conceptually: Not only track the moves a player has made in a particular game, but how often that player has made that move in past games. (e.g. I want to be able to track how many times a given player has opened by moving the king pawn up two squares [i.e. e4], as white, on move number one. Also, what is the percentage of time the player responds to white's e4 opening move, with moving his own king pawn to e5? What percentage of time does he respond by moving his queenside bishop pawn to c5? If it's not clear, the stat tracking system should also be able to report how many times this player, as black, move his queen to h1, on move number 30.)

I'm using Parse.com for my back-end as a server (BaaS) service. So, here's the ultimate question: Write a class that writes strings that identify move number, player color, moved piece, algebraic notation of the square (e.g. "d8") to a file, locally in the file system. Save the file to Parse. Delete temporary file from file system. Upon opening the same game in my tableview (a la a "With Friends" game), download this file from Parse, parse through it and retrieve all stats/history, assign all relevant values to variables. Is this plan viable, or is there an easier way?