GithubHelp home page GithubHelp logo

telegiphy's People

Contributors

corez92 avatar jessicango avatar mester avatar zapplecat avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

telegiphy's Issues

Game Start

When the game start mechanism is called, it will change the values in the database to disallow any more participants even if they have a valid game token.

Server receives game token

If game token is valid, this will direct player to game lobby. If the token is invalid (either no token exists or game has started), this will give an error.

Secret Key Empty when available

I am getting a django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty. when I try to run python manage.py check

I suspect this is due to the slightly different settings from the default settings.py

Pressing on 'gif me' 2+ times does not show gif

If you pressed 'gif me' in hotseat more than once, without the text being filled, then you will get a "blank gif" (i.e. default giphy gif). This makes it so you can't click on pass gif. If you click on it even more times, it continues to store new sets into the database, with different gif URLs.

This may have been caused by the g.gameround_set.update_or_create code?

Pre game over

Basically the backend processing before the gameover/results screen. Maybe not needed and just do all processing on the final view

Really Long Gifs. Keep them or skip them?

I described this in the chat room, but here we go again. I was making some mock responses for gameover and I did the following:

  1. I did a giphy.gif_random using 'doge' as the tag and got this
  2. Then I did another giphy.gif_random using store shibe as the tag and got this really long gif

What do we want to do with really long gifs? Should we check for the total frames and if there's too many, we'll skip them? Or do we not care?

New Game Token

Mechanism needs to be created to to generate a token for a new game.

django Models

Models for various aspects of the game. Few are listed below, thought out with standard SQL columns. Add more in comments if necessary.

  • Auth (game) tokens: id, token, game_active
  • User tokens (paired with auth for active users): id, token
  • User: id, username, user token id, auth token id
  • Game rounds: id, round #, user id

Readme Setup not yielding intended results

The setup steps from the readme is not doing what's intended on Ubuntu.

A few things to that's noteworthy:

  • pip install -r requirements/local.txt will yield Could not open requirements file: [Errno 2] No such file or directory: 'requirements/local.txt'. This is due to the previous $WORKON_HOME...s failing. I have circumvented this by using pip install -r ~/TeleGiphy/requirements/local.txt
  • As pointed out, none of the lines with$WORKON_HOME works, so the echos don't spit out anything. For example:
$ echo "export OLD_PYTHONPATH=\${PYTHONPATH}" >> $WORKON_HOME/tele-giphy/bin/postactivate
(ECHO MISSING HERE)
$ $WORKON_HOME/tele-giphy/bin/postactivate
bash: /home/user/.virtualenvs/tele-giphy/bin/postactivate: Permission denied

Game breaks when no gif result

We need to catch some of the errors during get new gif

Environment:


Request Method: POST
Request URL: http://localhost:8000/game_lobby/2445/choose_new_gif

Django Version: 1.10
Python Version: 3.5.2
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'game.apps.GameConfig',
 'debug_toolbar']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback:

File "/home/user/.virtualenvs/tele-giphy/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
  39.             response = get_response(request)

File "/home/user/.virtualenvs/tele-giphy/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/home/user/.virtualenvs/tele-giphy/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/user/TeleGiphy/tele_giphy/game/views.py" in choose_new_gif
  107.     gif = response.json()['data']['image_url']

Exception Type: TypeError at /game_lobby/2445/choose_new_gif
Exception Value: list indices must be integers or slices, not str

Clarification on game play

Case: 6 people playing Telegiphy
One player has to initiate a game session. Just like Hangouts, you go to the site and click on a button for a new game. You get a link or (extra feature) send an e-mail invite (or better yet make use of some social media, maybe we can even just use slack to send invites, I think slack would work best since we’ll probably test it out with people from rmotr). You wait until enough people join and the creator has the power to make the game start. When the game starts, the site will:

TWO OPTIONS:

  1. You randomly get a word, but then I don’t know what to do next? Because you already have the word so how do you “make a giphy” out of that? Wouldn’t you just type the same word for giphy? Or do you just think of a text to describe the word? And that text you send to giphy to make a new gif? Because my whole gripe is that that person isn’t doing anything, they’re just passing a message along.
  2. The site automatically generates a giphy for you and you have describe it for example. That description creates a new gif and that gif is sent to the next person (order of play is randomly decided).

The next person will then guess the correct statement that created that gif. You keep on doing that until the last player comes and then that player makes another word guess. The site then compares the two words by the first and last player and see if they are the same, if so: winner winner chicken dinner. If not then well you lose, bitch.

Game summary: each person’s word and the corresponding gif.
We should keep tally maybe of how many times there was a total success and how many times people had mini wins, obviously weighted since the first few persons had more relevant words. But we can brainstorm on this some more.

Gameplay example:

Need to discuss the idea where the two options diverge first.

PROPOSAL: setup a hangout session tonight 5PM (my time). B&J: that's 2PM for you guys. A: that's 11PM I believe. I'm on East coast time.

Topic: Discuss gameplay. Discuss specs and goals. etc. We can put up a list of stuff we want to discuss in an agenda.

New Game Token UI

Button that will generate a new game token and display to the user/player.

Flask or Django

I didn't see any decision on this yet. So what will it be?

Get new gif gets the static_giphy gif

There are 2 cases where this happens:

  1. If a user types in text and does get gif, once the gif has loaded, deletes the text and press get gif again
  2. If a user does not type in text and does get gif, once the gif loads, types in text and press get gif again

In both these cases, the game registers the user as having moved onto the second round.

Hotseat not clearing session cookies

At the end of hotseat gameplay, the session is not closed, and game cookies remain. This makes it so that the player is unable to start a new game.

Hotseat gameplay

going to try to make game working for hotseat gameplay wish me lucky guys

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.