Giter VIP home page Giter VIP logo

calliope's People

Contributors

axelchalon avatar haterecoil avatar margauxcbrl avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

calliope's Issues

Analytics queries

Création des queries / models d'analytics

Pseudo code :

  • two weeks average points
    -- Player.games.score.average

  • tous les mots auxquels il n'a pas su répondre
    -- Player.words.where(word==null).prev_word

  • évolution des scores du joueur dans le temps
    -- Player.games.score.sort_by_date

  • nombre de mots différents
    -- Player.words.distinct

  • les mots qu'il utilise le plus
    -- Player.words.group_by(word)

  • les mots contre lesquels il fait des mots courts
    -- Player.words.where(length < 5).previous_word.group_by(previous_word)

  • les gens bête noire
    -- Player.games.lost group_by(opponent_id)

Sauvegarder les parties jouées en DB

Sauvegarder les parties en DB à la fin d'une partie

Question :

  • Comment gérer les parties jouées par les guests ? création d'un Player "MasterGuest" ?
  • Pareil pour l'IA ?

Problème d'encodage sur le dico / rails

[ActionCable] Broadcasting to player_96: {:action=>"opponent_played", :msg=>"zost\xC3\xA9rien", :points=>63}
Could not execute command from {"command"=>"message", "identifier"=>"{\"channel\":\"GameChannel\"}", "data"=>"{\"word\":\"surpreniez\",\"action\":\"play_word\"}"}) [Encoding::UndefinedConversionError - "\xC3" from ASCII-8BIT to UTF-8]: /home/xx/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/object/json.rb:34:in `encode' | /home/xx/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/object/json.rb:34:in `to_json' | /home/xx/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/object/json.rb:34:in `to_json' | /home/xx/.gem/ruby/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/json/encoding.rb:55:in `to_json' | /usr/lib/ruby/2.3.0/json/common.rb:224:in `generate'

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.