Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE - Add debugging code & some Static variables #18

Closed
frankk74 opened this issue Jul 11, 2022 · 3 comments
Closed

RFE - Add debugging code & some Static variables #18

frankk74 opened this issue Jul 11, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@frankk74
Copy link
Collaborator

Currently debugging messages are spread throughout the code and has to be added handrolically ..

@frankk74 frankk74 added the documentation Improvements or additions to documentation label Jul 11, 2022
@frankk74 frankk74 self-assigned this Jul 11, 2022
@frankk74 frankk74 added enhancement New feature or request and removed documentation Improvements or additions to documentation labels Jul 11, 2022
@frankk74
Copy link
Collaborator Author

Debugging code is being sent out to the text window and log.txt via append and append_simple().

Wrapper ifdef's have been added around verbose echoing..

for development change code to #Const VERBOSE = TRUE

Wrapper code looks like:

#If VERBOSE Then
            Call append_simple("In play_game() -----------------------------")
#Else
            Call append_simple("-----------------------------")
#End If

@frankk74
Copy link
Collaborator Author

The following Basic code was implemented for some static variables to make code easier to follow:

    ReadOnly AGECOUNT As Short = 9 ' FK Ages are 1-10 IRL, code uses 0-9
    ReadOnly ICONCOUNT As Short = 5 ' FK Icons are 1-6 IRL Leaf. Castle, Lightbulb, Crown, Factory ,Clock
    ReadOnly COLORCOUNT As Short = 4 ' FK Colors are 5 Yellow, Red, Purple, Blue, Green
    ReadOnly MAXPLAYERS As Short = 3 ' FK 4 players max

@frankk74
Copy link
Collaborator Author

Updates done in this commit: 38b3a6f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant