[Tutor] blackJack problem

Matthew Dalrymple computer_dude15 at hotmail.com
Wed Oct 24 00:23:04 CEST 2012





player1.py ----> http://pastebin.com/jzv1Hhs1blackjack.py ----> http://pastebin.com/Vj3sp3Ca ok the problem im having is with the GetBet function...i need it so you start with 1000 it will bet 5 everytime...if i win it adds 5 if i lose it subtracts 5 if we tie nothing changes. I think this is right for the most part except it says that it can call it before reference. I thought by having a value outside of the functions made the value global. Am i somewhat on the right track?  any help would be appriciated... Oh i also forgot to mention that even though im not using all the parameters they have to be there because the professor wants to be able to run other peoples "player1.py" files on my game. thanks
Matthew D 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121023/e5e916f5/attachment.html>


More information about the Tutor mailing list