Ejemplo n.º 1
0
	def makeReferenceDeckSet(self,included,availableDecks):
		self.referenceDeck = deck.filterDecks(availableDecks,'included',included)
Ejemplo n.º 2
0
import judgingyou.deck as deck
import judgingyou.game as game
#import views

# TODO: look into making these global variables
CSVPath = app.config['CSVPATH']
alpha1Decks = app.config['ALPHA1DECKS']

# test decks
CSVPath = '../../judgingyou-decks/judgingyou-decks/testDecks/'
alpha1Decks = ['NCABD','CABD','NCAE','CAE','ADPROMPT','ADANSWER']

""" TODO: bootstrap-- code will move by Alpha 2 """
availableDecks = deck.loadActiveDecks(deck.getAvailableDecks(CSVPath), CSVPath)
activeDecks = deck.filterDecks(availableDecks,'active','')
filteredDecks = deck.filterDecks(availableDecks,'included',alpha1Decks)

# TODO: game admin is irrelevant before alpha 2, since no game admin functions exist
thisGame = game.Game('gameAdmin')
thisGameDeckSet = thisGame.makeGameDeckSet(alpha1Decks,activeDecks)

hand = thisGame.startRound()

@app.route('/', methods=['GET','POST'])
def testingNavigation():
	return render_template('testingNav.html')

@app.route('/dumpdecks', methods=['GET','POST'])
def dumpDecks():
	return render_template('dumpDecks.html', decks=availableDecks)