Did I find the right examples for you? yes no

All Samples(36)  |  Call(5)  |  Derive(1)  |  Import(30)
This class represents a single Game resource

src/c/h/Chess-HEAD/src/main.py   Chess(Download)
          invite.put()
          if invite.fromPlayAs == models.PLAYAS_WHITE:
            game = models.Game(whitePlayer = invite.fromUser, blackPlayer = invite.toUser)
          else:
            game = models.Game(whitePlayer = invite.toUser, blackPlayer = invite.fromUser)

src/o/p/oponger-HEAD/lib/page_handlers.py   oponger(Download)
from elo import update_ranks
 
from models import Player, Game
from base_handler import BaseHandler
from stats import stats
  def DoPost(self):
    game = Game(player_1 = self.player)
    game.put()
    logging.info("Creating new game %s" % (game))
    self.redirect_to_redirect_path_or_home()

src/p/y/pykemon-0.1.2/pykemon/request.py   pykemon(Download)
import simplejson
from simplejson import JSONDecodeError
from models import Pokemon, Move, Type, Ability, Egg, Description, Sprite, Game
from exceptions import ResourceNotFoundError
 

src/d/j/django-diplomacy-HEAD/diplomacy/views.py   django-diplomacy(Download)
from django.db.models import ForeignKey, Max
import json
from .models import (Game, Government, Turn, Order, Territory,
                     Subregion, DiplomacyPrefs)
from .forms import OrderForm, OrderFormSet, GameMasterForm

src/d/j/django-bingo-1.4.0/bingo/views.py   django-bingo(Download)
import json
 
from models import Word, Game, BingoBoard, BingoField, get_game
from forms import CreateForm, ReclaimForm, ChangeThemeForm, RateGameForm
import image as image_module

src/p/s/PSAM-5150-HEAD/psam5150/gameshow/admin.py   PSAM-5150(Download)
#! /usr/bin/env python
# -*- coding: UTF-8 -*-
from django.contrib import admin
from models import Host,Game,Player
 

src/p/s/PSAM-5150-HEAD/psam5150/gameshow/views.py   PSAM-5150(Download)
from django.views.generic import TemplateView
from django.shortcuts import redirect
from models import Game, Player
from forms import GameScore
from django.contrib import messages
    def _start_game(self):
        player = Player.objects.create(name="Some Name", score=0)
        self.thegame = Game()
        self.thegame.players = player
        self.thegame.title = 'My Game Title'

src/s/p/spring-replay-site-HEAD/srs/sitemap.py   spring-replay-site(Download)
from django.contrib.sitemaps import Sitemap
from django.core.urlresolvers import reverse
 
from models import Replay, PlayerAccount, Game
from views import hall_of_fame

src/w/o/wouso-HEAD/wouso/core/game/__init__.py   wouso(Download)
from django.db.models import get_models
from models import Game
 
games_list = []
 

src/d/j/django-competition-HEAD/src/competition/views/game_views.py   django-competition(Download)
from django.http import Http404
 
from ..models import Game, GameScore
from .mixins import CompetitionViewMixin, RequireRunningMixin
 

  1 | 2 | 3 | 4  Next