codezoid/Lagzilla — Issue #1: Replace recursive function calls with loops (where necessary)
Author: codezoid
Created: 2011-11-01 18:35:31+00:00
State: open

Recursion is used quite frequently throughout this program. There are at least a few places where the use of recursion leads to problems--in that functions are indefinitely called recursively, leading to stack overflow (since the functions do not terminate/return).

The solution to this problem is to implement loops in place of recursive function calls.

An example of a place where recursion is being used (where it should not be used) is in the NewHand() function. When a new hand is created, the previous NewHand() function does not terminate.