Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Passing parameters between methods. (http://www.alice.org/community/showthread.php?t=506)

erichubanks 11-20-2006 08:01 PM

Passing parameters between methods.
 
My team is programming a game of tic-tac-toe. To keep track of X/Y turns we are using a parameter named [I]counte[/I]r. We can pass [I]counter [/I]forward from the control method along to as many called methods as we want. The problem is that when we increment [I]counter[/I] within a method (counter=counter+1) the returned value that we get in the method is not being passed back out to the control method. How do you pass these parameters back and forth properly?

I appreciate you time.


All times are GMT -5. The time now is 11:35 AM.

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.