Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Team Player Timeline

by aartist (Pilgrim)
on Jun 20, 2015 at 22:07 UTC ( [id://1131304]=perlquestion: print w/replies, xml ) Need Help??

aartist has asked for the wisdom of the Perl Monks concerning the following question:

A team has fix set of N players for every game it plays. Team has played G games so far. There are total T players so far who have played the games. As the time pass by some players are dropped and some players are added and some reappear. I like to demonstrate the players time line with respect to game visually. Which modules/algorithms can help here? Thanks

Replies are listed 'Best First'.
Re: Team Player Timeline
by u65 (Chaplain) on Jun 20, 2015 at 23:22 UTC

    I recommend using Gnuplot <http://www.gnuplot.info>. I have never used any of the Gnuplot modules on CPAN, but I'm sure they are an improvement over my direct script-driven efforts in years past. However, Gnuplot has lots of options, so the modules may not help in all cases.

Re: Team Player Timeline
by Anonymous Monk on Jun 20, 2015 at 22:27 UTC

    Which modules/algorithms can help here?

    Some kind of "plot" or "chart" module

      Thanks. I am looking for particular algorithm or mechanism to solve this type of problem in general.

        I doubt there's "an algorithm" for what you want to do. At least nothing more specific than, "Get the data you want into a structure and display it." In the first place, it'll depend on how the data is stored: by game, by player, some other way?

        To visualize the timelines of the players focused on a particular game, my first thought is something like a candlestick graph that extends above and below a line representing the current game, where you can see how many games before and after this one a player was in. But whether that's a good choice would depend on how often players change. If players often play a single game and leave again, that'd be a pretty useless graph.

        Aaron B.
        Available for small or large Perl jobs and *nix system administration; see my home node.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1131304]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 22:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found