Re: [Tutor] what happens when...

2006-09-14 Thread josip
When I remove board I get message: global name 'board' is not defined. Ok I understand that. But I would like to get some explaination to understand better.Thanks!John Fouhy [EMAIL PROTECTED] wrote: On 14/09/06, josip <[EMAIL PROTECTED]>wrote: Hi all! Can You explain me what happens when in

Re: [Tutor] what happens when...

2006-09-14 Thread Alan Gauld
def human_move(human): # = here is board removed legal = legal_moves(board) where does the board come from here? If you had it as a parameter then thats where it would come from. Without a parameter you need to have a global variable called board. The parameters are the communications

[Tutor] what happens when...

2006-09-13 Thread josip
Hi all! Can You explain me what happens when in this function I remove board arg: def human_move(board, human)? What is doing that argument?Thanks! # global constantsX = "X"O = "O"EMPTY = " "TIE = "TIE"NUM_SQUARES = 9 def display_instruct(): """Display game instructions.""" print

Re: [Tutor] what happens when...

2006-09-13 Thread John Fouhy
On 14/09/06, josip [EMAIL PROTECTED] wrote: Hi all! Can You explain me what happens when in this function I remove board arg: def human_move(board, human)? What is doing that argument? Have you tried removing the argument and running the code? What error message do you get? What do you