GithubHelp home page GithubHelp logo

fourinarow-loganalyzer's Introduction

Four in a Row Game Server Log Analyzer

About

Authors/Contributors

University Project, January 2021

Description

  • What I did:

    Analyze real world log data from a game server I host in regard to time of day, game strategy and duration. Includes fancy hand-made graphs.

  • Background information:

    This script can analyze files generated by the game server I run. The accompanying app has around 1700 downloads on the playstore of which 600 still have the app installed. The game is a minimal version of the classic game "Four in a Row" written in Flutter+Dart, with added online functionality, friends list, chat, lobby system and local (two players, one device) play. Download it here: Google Play Store (Android only)

    A Web-Version can be found here

    It is not bug-free because the mobile version has higher priority.

    The server is written in Rust. In case you care, please have a look here and give it a star :)

This "project" contains:

  • log analyzer with several modi
  • (real world example) log file

Run

  • Open console window in fullscreen.
  • python3 src/main.py
  • Follow the interactive prompts to explore the logs.

Custom Configuration

Add your own logs in the given format or modify them.

Documentation

The script interactively asks which file you would like to analyze (proposing the first .log file it finds in the script's working directory), lists the available analyzation methods. Then, the selected method is executed, displaying general (how many ...?) stats and a graph with x and y legends.

Known Issues

None.

Much larger amounts of data might surface processing time issues but the current set of 500,000 lines only took a couple of seconds to process.

Useful links

fourinarow-app

fourinarow-server

Example output

Please use fullscreen to view properly.

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|  Welcome to the Four in a Row Log Analyzer by Filippo Orru (ffactory)  |
|           For more information, please refer to the readme.            |
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Which file you would like to process? [Leave empty for: fiar-20210105_2131.log]
  > 

OK! File loaded successfully.

Available analyzation choices:
 [1]: Game Start Time
 [2]: First Chip Placement
 [3]: Game Duration
Please make a choice: 3

 |         --  Analyzing Game Duration  --         |
 |                                                 |
 | How long did the games last?                    |
 | Not showing outliers. (shortest and longest 5%) |
 | This will take a while...                       |

Total games played: 290
      _______________________________________________________________________________________________________
10.3%|       #                                                                                               |
     |       #                                                                                               |
     |       #                                                                                               |
     |       #                                                                                               |
 7.8%|       #   #                                                                                           |
     |       #   #       #   #                                                                               |
     |       #   #   #   #   #           #                                                                   |
     |       #   #   #   #   #           #                                                                   |
 5.2%|   #   #   #   #   #   #   #       #                                                                   |
     |   #   #   #   #   #   #   #       #   #                                                               |
     |   #   #   #   #   #   #   #   #   #   #           #                                                   |
     |   #   #   #   #   #   #   #   #   #   #           #                                                   |
 2.6%|   #   #   #   #   #   #   #   #   #   #           #                                                   |
     |   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #                                   |
     |   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #                       #       |
     |   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #   #           #   #   |
      -------------------------------------------------------------------------------------------------------
         11  21  31  41  51  61  71  81  91  101 111 121 131 141 151 161 171 181 191 201 211 221 231 241 251 

      Game duration in seconds ->

fourinarow-loganalyzer's People

Contributors

filippo-orru avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.