def start_initial(game):
round_data, users_plots = get_round(game)
state = 'initial'
if round_data is None:
game.end_time = timezone.now()
game.save()
game.broadcast(action='redirect', url=reverse('interactive:exit'))
return
else:
cache.set(game.id, {'state': state,
'round_data': round_data,
'users_plots': users_plots,
})
initial(game, round_data, users_plots)
task.deferLater(reactor, 1, game_state_checker, game, state, round_data, users_plots).addErrback(twisted_error)
评论列表
文章目录