Ejemplo n.º 1
0
	def test_deckSetSetup(self):
		self.availableDecks = deck.loadActiveDecks(deck.getAvailableDecks(self.app.CSVPath), self.app.CSVPath)
		print "Deck Set set up did not throw exception."
Ejemplo n.º 2
0
app.config.from_envvar('JUDGINGYOU_SETTINGS', silent=True)

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():