<filename>rightBet/src/rightBet/RightBet.py
'''
Created on 10 Feb 2016

@author: BenShelly
'''
from rightBet.CsvReader import CsvReader
from rightBet.RacecardConsoleView import RacecardConsoleView
from rightBet.ConsoleReader import ConsoleReader
from rightBet.BettingSlipConsoleView import BettingSlipConsoleView
from rightBet.HorseOdds import HorseOdds

if __name__ == '__main__':
    csvReader = CsvReader ()
    racecardConsoleView = RacecardConsoleView ()
    bettingSlipConsoleView = BettingSlipConsoleView()
    horseOddsArray = csvReader.readCsv()
    consoleReader = ConsoleReader (horseOddsArray)
    racecardConsoleView.printRacecard(horseOddsArray)
    
    replay = True
    x = 0
    selectedHorses = []
    while replay == True:
        selectedHorse = consoleReader.readFromConsole()
        if selectedHorse != "-":
            
            if selectedHorse != None:
                selectedHorses.append(selectedHorse)
                if len(selectedHorses) == 8:
                    replay = False
        else:
            replay = False 
            
    bettingSlipConsoleView.printToConsole(selectedHorses)        
                   
<filename>rightBet/src/rightBet/RightBet.py
'''
Created on 10 Feb 2016

@author: BenShelly
'''
from rightBet.CsvReader import CsvReader
from rightBet.RacecardConsoleView import RacecardConsoleView
from rightBet.ConsoleReader import ConsoleReader
from rightBet.BettingSlipConsoleView import BettingSlipConsoleView
from rightBet.HorseOdds import HorseOdds

if __name__ == '__main__':
    csvReader = CsvReader ()
    racecardConsoleView = RacecardConsoleView ()
    bettingSlipConsoleView = BettingSlipConsoleView()
    horseOddsArray = csvReader.readCsv()
    consoleReader = ConsoleReader (horseOddsArray)
    racecardConsoleView.printRacecard(horseOddsArray)
    
    replay = True
    x = 0
    selectedHorses = []
    while replay == True:
        selectedHorse = consoleReader.readFromConsole()
        if selectedHorse != "-":
            
            if selectedHorse != None:
                selectedHorses.append(selectedHorse)
                if len(selectedHorses) == 8:
                    replay = False
        else:
            replay = False 
            
    bettingSlipConsoleView.printToConsole(selectedHorses)        
                   
Created on 10 Feb 2016
 
 @author: BenShelly