@empty crystal
#why arent the variables defined in the main call?
23 messages · Page 1 of 1 (latest)
You never defined them before using them in the call to main
So main has no idea what they are
But that's in a function which means the main call that's outside the function cannot access it
The ones in 100 and 105 are inside the main function. So should they be an argument to the main function or not?
yes
Really?
Maybe think about it for a bit 😉
it has to be an argument in the main function or you wouldnt be able to call fun dealAHand
makeADeckof52 Function